• 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

Widget Area Not Displaying

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 › Widget Area Not Displaying

This topic is: resolved

Tagged: genesis_register_sidebar, genesis_widget_area

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 3 months ago by paulag01.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 14, 2016 at 8:59 am #187528
    paulag01
    Member

    I am a bit behooved - I am customizing Genesis Sample Child. I am able to display other conditional widgets ok. Yet this one I cannot get to display no matter how I try. I bet it is something simple.

    Here is the code I am using:
    //* RRC PAGES HEADER
    //*----------------------------------------------------------------

    //* Register after header widget area
    genesis_register_sidebar( array(
    'id' => 'before-content-imagearea',
    'name' => __( 'Before Content Image Area', 'dfgpa' ),
    'description' => __( 'This is a widget area for RRC header', 'dfgpa' ),
    ) );

    //* Hook after post widget area after header content
    add_action( 'genesis_before_header', 'pg_before_header_widget' );
    function pg_before_header_widget() {

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

    And example of page it should display on is here:

    Retirement Resource Center

    I DO have an actual image in the widget and that URL is valid (tried it outside of the widget to be sure).

    In case the problems lies in the custom template, the page uses this custom page template:
    <?php
    /**
    * Template Name: RRC Home Page

    */

    // FORCE FULL WIDTH LAYOUT
    add_filter ( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

    // Homepage CUSTOM LOOP

    //***Add Custom Body Class**/
    add_filter( 'body_class', 'no_header_body_class' );
    function no_header_body_class( $classes ) {
    $classes[] = 'rrc';
    return $classes;
    }

    //***Remove Header**/
    remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
    remove_action( 'genesis_header', 'genesis_do_header' );
    remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );

    genesis();

    ?>

    Any ideas what I might be missing? I am assuming even if header is removed the "action" still exists (and I tried before_content and same result, no display).

    Thanks in advance.
    Paula

    http://dfgpacom.wwwss30.a2hosted.com/retirement-resource-center/
    June 15, 2016 at 1:28 am #187562
    Brad Dalton
    Participant

    The widget i.d needs to match in both code snippets

    See this widget code.


    Tutorials for StudioPress Themes & WooCommerce.

    June 15, 2016 at 8:28 am #187585
    paulag01
    Member

    Thank you Brad. That is exactly why I needed someone else's eyes on this. Changed so many things trying to get it to work that I lost sight of the basics.

    Appreciate the tutorial...it's one I follow often.

    Warmly
    Paula

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Widget Area Not Displaying’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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