Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Conditional Logic for %logo and %image control

Old May 5, 2010, 07:51 AM
90 posts · Dec 2009
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:

<?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.

<?php if(is_front_page()) { echo '<div class="horbar1">&nbsp;</div>'; } ?>
Old May 5, 2010, 08:24 AM
juggledad's Avatar
23,755 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
No, but you could use CSS to deal with it
HTML Code:
.horbar1 {display:none !important;}
body.home .horbar1 {display:block  !important;}
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Widget logic not works with Atahualpa 3.4.5 chiara7 Plugins & Atahualpa 8 Jan 18, 2010 02:31 PM
atahualpa 3.4.4 and wp logic issue. ramapoughnative Atahualpa 3 Wordpress theme 1 Jan 4, 2010 08:11 AM
[SOLVED] widget logic and atahualpa compatibility bigliettaio Plugins & Atahualpa 10 Jan 3, 2010 03:56 PM
If I Leave The Logo Image Field Blank, It Displays Broken Image Icon in Header psaltriparus Header configuration & styling 1 Oct 20, 2009 09:30 AM
[SOLVED] why insert image into image header in place to the blogtitle (like a logo) ? gilles Header configuration & styling 1 Sep 5, 2009 04:14 AM

All times are GMT -6. The time now is 04:21 AM.

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