• 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

Adding Custom Widget to FoodiePro, below menu and above content

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 › Adding Custom Widget to FoodiePro, below menu and above content

This topic is: not resolved

Tagged: foodie pro, new widget

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 4 months ago by Brad Dalton.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 22, 2016 at 10:12 pm #179685
    KimHardesty
    Member

    Hi all,

    I'm using the foodiepro theme. We are trying to customize by adding a new widget area. What I am trying to accomplish is to add a new area to the top of our landing-page. This will be below the menu and above the first post and sidebars. It will span full page (left to right) - normal content will start below that.

    I've customized wp-content/themes/foodiepro-2.1.7/includes/widgeted-areas.php
    added:
    genesis_register_sidebar( array(
    'id' => 'lcmaven-top-of-page',
    'name' => __( 'LCMaven Top Of Page', 'foodiepro' ),
    'description' => __( 'LCMaven Top Of Page', 'foodiepro' ),
    ) );

    And this part seems to work. The new "LCMaven Top Of Page" appears correctly in our widges.

    Next i've tried to add hook the new widget area in, but this is where i am striking out. I've added this code to the bottom of wp-content/themes/foodiepro-2.1.7/functions.php.

    add_action( 'genesis_after_header', 'add_genesis_widget_area' );
    function add_genesis_widget_area() {
    genesis_widget_area( 'lcmaven-top-of-page', array(
    'before' => '<div class="lcmaven-top-of-page widget-area">',
    'after' => '</div>',
    ) );

    But that just ends up crashing the site (our local install of WordPress). I'm guessing that is the wrong file... and I am not sure if this is the right area (genesis_after_header?) or what else might be wrong here.

    Any help is greatly appreciated!

    http://lowcarbmaven.com
    February 23, 2016 at 6:54 am #179704
    Brad Dalton
    Participant

    Try this http://wpsites.net/web-design/adding-new-widget-areas-in-studiopress-themes/


    Tutorials for StudioPress Themes.

  • 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

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