User | Post |
6:46 am February 8, 2012
| MoneyIsTheRoot
| | |
| Member
| posts 1456 |
|
|
|
I have a blogger who is trying to place a homepage only ad on his site, and it is showing up on the category pages as well, and he is using the Widget Context Plugin with the "front page" only setting…any suggestions as to why it would still be showing up on the category pages??
Thanks!
|
|
|
7:40 am February 8, 2012
| Miss T @ Prairie Eco-Thrifter
| | |
| Member
| posts 2213 |
|
|
|
You have to actually put this code : is_home() in the widget logic box in the widget itself.
|
|
|
2:24 pm February 8, 2012
| MoneyIsTheRoot
| | |
| Member
| posts 1456 |
|
|
|
I sent the info along to the blogger…I hope that works! Thank you for the quick response!
|
|
|
3:37 am February 10, 2012
| money cactus
| | Australia | |
| Member | posts 33 |
|
|
|
I use the 'Display Widgets' plugin and it works perfectly well for me.
|
|
|
3:05 pm February 10, 2012
| Charles @ MoneyGreenLife
| | |
| Member | posts 318 |
|
|
|
I just use the following code on the sidebar wherever I want it to be homepage only:
<?php if(is_home() && $post==$posts[0] && !is_paged()) { ?>
This text will only appear on the homepage and nowhere else!
<?php } ?>
|
|
|
4:05 am February 12, 2012
| Jackie
| | |
| Member | posts 664 |
|
|
|
Charles @ MoneyGreenLife said:
I just use the following code on the sidebar wherever I want it to be homepage only:
<?php if(is_home() && $post==$posts[0] && !is_paged()) { ?>
This text will only appear on the homepage and nowhere else!
<?php } ?>
You can use this code within widgets too if you have the Exec-PHP plugin installed (so your php code will execute within the widget.)
|
|
|