Custom Theme Loses Content when Activated.
Permalink
I am having a custom theme built for a website of mine but every time I activate it my current content doesn't transfer.
It keeps it's own account for what is on the page under that theme but all of my content that is there under the old theme and other themes doesn't show on this theme. Any thoughts on what lines of code I need to add to make this work? Thanks for any help you guys have been awesome to me.
It keeps it's own account for what is on the page under that theme but all of my content that is there under the old theme and other themes doesn't show on this theme. Any thoughts on what lines of code I need to add to make this work? Thanks for any help you guys have been awesome to me.
the issue is with the naming of areas. c5 stores content under the area names for a page. most likely your current theme and your custom theme have different area names, and so are referencing different data.
As long as the editable area names are named the same thing on both themes then all content will transfer.
Change the editable area names on your custom theme to the same names your old theme is using.
For example if your old theme uses the name "header nav" for its header nav editable area, name your new themes nav area "header nav"
Change the editable area names on your custom theme to the same names your old theme is using.
For example if your old theme uses the name "header nav" for its header nav editable area, name your new themes nav area "header nav"
Thanks everyone I will try this by comparing a few templates tomorrow and make sure the naming was done the same. I will let you know what I find.
/*must be on the first line of the header.php file*/
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
/*Put this line right above the closing </head> tag */
<?php Loader::element('header_required'); ?>
/*Put this line right above the closing </body> tag */
<?php Loader::element('footer_required');?>
Danny Nunez