Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   Conditional Logic for %logo and %image control (http://forum.bytesforall.com/showthread.php?t=6981)

cab262 May 5, 2010 07:51 AM

Conditional Logic for %logo and %image control
 
Is there a mechanism that one can use to wrap conditional php logic around the substitution strings that are offered in the header section?

For example:

Code:

<?php if(is_front_page()) { echo '%bar1'; } ?>
I'm trying to leverage the benefits of the substitution strings but wrap them around page specific criteria. This piece of code does not seem to work.

For now, I've grabbed the source html from the rendered page and put it in for %bar1.

Code:

<?php if(is_front_page()) { echo '<div class="horbar1">&nbsp;</div>'; } ?>

juggledad May 5, 2010 08:24 AM

No, but you could use CSS to deal with it
HTML Code:

.horbar1 {display:none !important;}
body.home .horbar1 {display:block  !important;}



All times are GMT -6. The time now is 01:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.