WordPress themes customization

Mar 13, 2012   //   by phpfreelancer.biz   //   Blog, Wordpress Theme Tutorial  //  No Comments

I want to add a widget in to my theme and it should display only home page. Also user can add different page URL’s to the widget through admin panel and added page should be display in home page

Just register two separate widget areas. One for the home and one for the test of the site. This way you can add different widgets to each section of your site.

the another way is For your setup, simply drag the widget into the widget area and in the widget logic text input place the following:

 is_home() 

By doing so, the widget will only show on the home page.

Leave a comment

Share This Post

RSS Wordpress News