You could use the text widget for inserting the banner, and then define where the banner should appear with the Widget Logic plugin.
And BTW, almost everyone opening a topic needs some help. Please be more descriptive in your topic title.
Yeah sorry about that.
Anyway, when inserting the functions things : is_home() etc.
Putting that in the widget box, does it mean that it’ll show on them pages, or NOT show on them?
Thanks for the help.
Using is_home() will show it only on the homepage. is_page() will show it on pages.
http://codex.wordpress.org/Conditional_Tags
Cheers, can I get it just to show on the HOMEPAGE & The Post Page and not the other pages?
I’ve tried putting in is_home() & is_page() but it doesn’t appear then at all.
Thanks for the help so far.
if(is_front_page() || is_home() || is_single() || is_archive()){
// YOUR BANNER HERE
}
or simply,
if(! is_page()){
// YOUR BANNER HERE
}
if(is_front_page() || is_home() || is_single() || is_archive()){
// YOUR BANNER HERE
}
or simply,
if(! is_page()){
// YOUR BANNER HERE
}
Do I insert that in the coding of the sidebar, or in the widget logic space? Cheers.
Looked and looked but still can’t find anything that incorporates two pages only.
I want a certain ad to appear on the
and the
and not my ‘Contact’, ‘Advertise’ or ‘About’ pages.
I’m not the worst at understanding coding in the sidebar etc but I’d much rather if there was an easy solution like
is_home() & is_single()
Possible?
Appreciate help so far π
Assuming that by “Posts page”, you mean a single post page:
<?php (if (is_home() || is_front_page() || is_single() ) :?>
[banner code]
<?php endif;?>
will work.
http://codex.wordpress.org/Conditional_Tags
Really do appreciate the help esmi,
However, I’m just wondering whether there’s a simple code I could put into the logic space on the widget that’d get it to show on my 2 preferred pages.?
I’l use that code suggested if there’s no other easier option.
Just trying to make life easier for myself π
Doocey.