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

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Adding New Widget Areas In StudioPress Themes

This is a beginners guide to adding new widget areas for StudioPress theme owners.

Please copy the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++ for Windows or Text Wrangler for Mac users.

There’s generally only 2 changes you will need to make to this code.

  1. Change the hook to determine which position your widget displays.
  2. Change the conditional tag to determine which pages your widget displays on.
  • The hook used in the above code example is genesis_after_header
  • The Conditional Tag used in the same code is is_front_page

The links below help you choose which hook & conditional tag to modify in the above code snippet to suit your needs.

Add Widget After Single Posts

All you need to do is copy this line of PHP code and paste it at the end of your child themes functions file using a code editor.

add_theme_support( 'genesis-after-entry-widget-area' );

Change Hook & Conditional Tag

  • Positioning Your Widget Using Hooks
  • Control Which Pages Your Widget Displays On Using Conditional Tags
  • Add Widget Inside Body of Content Area

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems