Sidebar Widget for Home and Single Post in Genesis


Genesis theme is the best theme framework in WordPress. Almost all child themes have a sidebar except single layout theme. We place widgets at the sidebar. All widgets appear in every pages. Now, what if we want to display a particular widget only in home page? Or what if we want to display a widget only in a single post page? In this tutorial we will create one sidebar widget area for home page only and another sidebar widget area for single post only.

Create a Sidebar Widget Area for Home Page

Add the following code in your genesis theme’s functions.php file.

Create a Sidebar Widget Area for Single Post

Add the following code in your genesis theme’s functions.php file.

You may modify the above and use different conditional statement.

Find the Conditional Statements from WordPress


Leave a Reply

Your email address will not be published. Required fields are marked *