Different Sidebar content on live setup as compared to local setup
I designed a theme with the sidebar file content as
<div class="sidebar"> <ul> <?php /* Widgetized sidebar, if you have the plugin installed. */ if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?> <li> <div class="widgettitle">Left Sidebar</div> <p>Add some widgets here.</p> </li> <?php endif; ?> </ul> </div>
I am using a child theme of this theme, now when I view this on local setup, the sidebar is like – http://img341.imageshack.us/img341/5055/96998855.png (works as expected) and if the same is viewed on live site, the sidebar looks like – http://img341.imageshack.us/img341/2605/40918899.png
Both the setups have no widgets at all, not even inactive widgets.
Also the code generated has this line
<div role="complementary" id="sidebar">which means WordPress is producing it somehow and I need to figure that out.
- The topic ‘Different Sidebar content on live setup as compared to local setup’ is closed to new replies.