Trouble with conditional statement for front page, to show sidebar
-
Here’s the situation:
I have a sidebar in a mobile theme that I only want to show on the front page. My knowledge of PHP is a little fuzzy here. I thought I could combine the conditional statement with the existing sidebar code like so:
<?php if (is_front_page() && !function_exists('dynamic_sidebar') || !dynamic_sidebar('home-video-link') ) : ?> <?php endif; ?>
But it doesn’t work. What am I doing wrong? I just took what was there and added the
is_front_page() &&
to the front of. Is that wrong?Thanks for any assistance!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Trouble with conditional statement for front page, to show sidebar’ is closed to new replies.