• 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

How to add a Before Footer Widget in Genesis Sample Theme 3.41

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 › StudioPress Themes › Genesis Sample › How to add a Before Footer Widget in Genesis Sample Theme 3.41

This topic is: not resolved

Tagged: front page, genesis sample, genesis_before_footer, genesis_widget_area

  • This topic has 1 reply, 2 voices, and was last updated 1 year, 2 months ago by Brad Dalton.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • November 17, 2021 at 1:26 pm #504589
    mlbracewell
    Participant

    Hi!

    I've tried this code in the functions.php but it's not working in the latest version of the Sample Theme.

    //* Register Widget Area Before Footer
    genesis_register_sidebar( array(
    'id' => 'before-footer',
    'name' => __( 'Before Footer' ),
    ) );

    add_action( 'genesis_before_footer', 'before_footer_widget_area', 5 );
    function before_footer_widget_area() {

    if ( ! is_front_page() )
    return;

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

    }

    Can anyone help me?

    TIA!

    https://docsdraincleaning-com-staging.r383qabd-liquidwebsites.com/
    November 18, 2021 at 7:07 am #504590
    Brad Dalton
    Participant

    Works when i test the code but only on the front page.


    Get Help – Book Consultation.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

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