nyceducrats
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: dynamic sidebar not recognized??When the coding between the
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar() ) : ?>and
<?php endif; ?>
get left out the style of the widgets gets lost.
The problem is that if I remove this coding then the widgets I add or remove from the page will have to be written into the coding of sidebar.php instead of controlled by the administrative files.
I might go this route since I can’t figure out why the above code works with one theme and not with another????
Thanks again for the replies.
Forum: Fixing WordPress
In reply to: dynamic sidebar not recognized??Thank you for the reply. I did that just to make things more simple (I should have known I would somehow screw it up)! Here is what is in the sidebar.php :
<div class=”sidebar”>
<!– 1 –>
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar() ) : ?><!– 2 –>
<li class=”side-header”>
<li class=”side-back”>
<h2><?php _e(‘Archives’,’simpson’); ?></h2>-
<?php wp_get_archives(‘type=monthly’); ?>
<li class=”side-footer”>
<!– 3 –>
<?php endif; ?>
<!– 4 –>
<!– 5 –>
</div>
and here is what gets published/printed to the page:
<div class=”sidebar”>
<!– 1 –>
<li id=”archives” class=”widget widget_archives”><h2 class=”widgettitle”>Archives</h2>
<!– 4 –>
<!– 5 –>
</div>
If I simply remove the
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar() ) : ?>tag and it’s closer the site prints as anticipated/desired. Am I allowed to simply remove the ?php if tag and what bad things might happen if I do?
Thanks so much for the support,
KurtForum: Fixing WordPress
In reply to: dynamic sidebar not recognized??That is correct.
I’m starting to think it’s something that is going on in the header part of the code because this works for a different theme.