• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WBXPress.NET

Website Developement Guide

  • apache2
  • nginx
  • mysql
  • php7
  • SSL
  • wordpress
  • genesis
  • caching
  • seo

Sidebar Widget for Home and Single Post in Genesis

Updated on 24th August 2015 Leave a Comment

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

Filed Under: wordpress Tagged With: genesis

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar

Most Popular Posts

  • Remove/ Defer Render-blocking JavaScripts
  • Customizing Genesis eleven40-pro Theme
  • Free Genesis Child Theme by WBXPress
  • Host Multiple Sites with SSL in Ubuntu 18.04
  • 25 Ways to Boost Website Traffic that Really Work

Recent Comments

  • Ruhul on Customizing Genesis eleven40-pro Theme
  • Priya Agarwal on Customizing Genesis eleven40-pro Theme
  • mimi roy on Remove/ Defer Render-blocking JavaScripts
  • danish choudhary on Customizing Genesis eleven40-pro Theme
  • Radhe on Customizing Genesis eleven40-pro Theme

Copyright © 2021 · Powered by WordPress · Log in