Dynamin_sidebar() returns false
-
I create theme from html templates.
In the sidebar.php i put the following(umong other things)
<?php if (function_exists(‘dynamic_sidebar’)) : ?>
<p> synamic sidebar exitst </p>
<?php if(dynamic_sidebar()) : ?>
<p> synamic sidebar returs true </p>
<?php else : ?>
<p> synamic sidebar returs false</p>
<?php endif; ?>
<?php else : ?>
<p> synamic sidebar not exitst </p>
<?php endif; ?>In functions.php I put the following code:
<?php
if( function_exists(‘register_sidebar’)) {
register_sidebar(array(
‘name’ => ‘Default sidebar’,
‘id’ => ‘sidebar-1’,
‘before_widget’ => ‘<div class=”widget” id=”%1$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h3>’,
‘after_title’ => ‘</h3>’
));
}
?>Why do I get the following:
“synamic sidebar exitst”
“synamic sidebar returs false”Can someone help please?
Regards
Itzik
The topic ‘Dynamin_sidebar() returns false’ is closed to new replies.