• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Before Entry widgets

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Before Entry widgets

This topic is: not resolved

Tagged: Add Widget, Hook Widget, widget area, widget placement

  • This topic has 6 replies, 4 voices, and was last updated 11 years, 1 month ago by pablo_qac87.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • December 30, 2014 at 4:24 pm #135700
    pablo_qac87
    Member

    Hello. How are you?

    I'm using New pro Theme and I really need a Before Entry Widgets. The default is after entry widgets

    How can I do that?

    Thank you!

    December 30, 2014 at 10:03 pm #135708
    Ren Ventura
    Member

    http://sridharkatakam.com/add-entry-widget-area-genesis/


    Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren

    December 30, 2014 at 10:24 pm #135712
    AQthinker
    Member

    Using the guide above you will learn the basic steps to adding a widget area in genesis.

    You may want to change the location of the widget, this visual guide is an awesome resource.

    Genesis Visual Hook Guide

    Simply, changing line four of the sample function.php mentioned in the post above, to either of the options in the visual guide will hook the widget to a different area.

    For example to add the widget right after the header, the code for line four would look like this
    'name' => __( 'genesis_after_header', 'your-theme-slug' ),

    December 31, 2014 at 12:34 am #135723
    pablo_qac87
    Member

    Thank you!!

    You are great!! 🙂

    December 31, 2014 at 1:11 am #135725
    pablo_qac87
    Member

    Is my first time trying editing the code.

    I was playing with it but I crashed my page. I wanted to add a widget before de header ( before the genesis-site-title and genesis-header-right)

    Why? Thank you so much

    
    
    //* Register before_header widget area
    
    genesis_register_sidebar( array(
    
    	'id'          => 'before_header',
    
    	'name'        => __( 'Before Header', 'your-theme-slug' ),
    
    	'description' => __( 'This is the before header section.', 'your-theme-slug' ),
    
    ) );
    
    //* Hooks before_header widget area
    
    add_action( 'genesis_header', 'sk_after_entry_widget', 9 );
    
    function sk_after_entry_widget() {
    
    	genesis_widget_area( 'before_header', array(
    
    		'before' => '<div class="before_header widget-area"><div class="wrap">',
    
    		'after'  => '</div></div>',
    
        ) );
    
    }
    
    December 31, 2014 at 2:36 am #135729
    Genesis Developer
    Member

    replace this

    add_action( 'genesis_header', 'sk_after_entry_widget', 9 );

    by

    add_action( 'genesis_before', 'sk_after_entry_widget', 9 );


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    December 31, 2014 at 4:29 pm #135769
    pablo_qac87
    Member

    Thank you 🙂

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble