Hi, I'd like to have a widget that can be seen on homepage only, could someone please help me how to this?
It's pretty easy all you need to do before you include the widget is use this check <?php if ( is_home() ) { // This is a homepage } else { // This is not a homepage } ?> Code (markup): of course you will need a second widget area that will displayed on all pages
Use this plugin "Widget Context" http://wordpress.org/extend/plugins/widget-context/ No need to code anything. Select where to show in widget area
Read This : http://www.amigowork.com/how-to-show-wordpress-widgets-on-certain-pages/ It might help you
I use the free plugin "Widget Context". It allows me to determine which pages I want the widget content to show up on.
Widget Context is the best option when you don't want to mess around with theme files and php codes.. got for it... hope it helps.. good luck
I've always used the following when you create a page and set it as the Home Page. if( is_front_page() ) { dynamic_sidebar('front-page-sidebar'); } else { dynamic_sidebar('other-sidebar'); } PHP: