• 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

Add Widget Area After Header

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 › Add Widget Area After Header

This topic is: not resolved
  • This topic has 1 reply, 1 voice, and was last updated 4 years, 3 months ago by trevors.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 10, 2018 at 5:16 pm #216405
    trevors
    Member

    Hi there,

    I've added the code to add a widget area after the header. The widget area is visible but when I drop in a text widget, it's not showing up. When I inspect the element in Chrome, it is visible.

    And here's what I added to my functions.php file:

    genesis_register_sidebar( array(
    'id' => 'after-header',
    'name' => __( 'After Header', 'monochrome-pro' ),
    'description' => __( 'This is the after header widget area.', 'monochrome-pro' ),
    ) );

    //* Hook after header widget area after site header
    add_action( 'genesis_after_header', 'add_after_header_widget_area' );
    function add_after_header_widget_area() {

    genesis_widget_area( 'after-header', array(
    'before' => '<div class="after-header widget-area"><div class="wrap">',
    'after' => '</div></div>',
    ) );

    }

    Any help would be appreciated, thanks.

    https://1ninety8.ca/
    February 10, 2018 at 9:04 pm #216410
    trevors
    Member

    I'd also like to add that the widget text seems to be visible on smaller screens but not my desktop screen size.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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

© 2022 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