• 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 full width widget above footer

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 full width widget above footer

This topic is: not resolved

Tagged: agency pro, new widget

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 7 months ago by CleanPageDom.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 15, 2015 at 1:18 pm #173846
    jmgroup
    Member

    http://www.jupiteryoga.net/new/

    Need to add a full width widget above the footer in the Agency Pro theme.
    Could you help me with that?

    Many thanks,
    Marcia

    http://www.jupiteryoga.net/new/
    December 16, 2015 at 3:20 pm #173974
    CleanPageDom
    Participant

    Hi Marcia

    How are you with editing functions.php and style.css? I ask because Carrie Dils has a great tutorial on adding a widget area which you could adapt for your purpose.

    She's edited it since I started using it, but the link is here: http://www.carriedils.com/add-widget-area-below-nav/

    Thinking about it, you may need to edit front-page.php (if it exists in that theme) to get this to work on the front page.

    This is what I have on my cheat sheet:

    Add this to functions.php

    /** Register widget area */
    genesis_register_sidebar( array(
    	'id'				=> 'cta-1',
    	'name'			=> __( 'Call to Action #1', 'mp' ),
    	'description'	=> __( 'This is the call to action section.', 'mp' ),
    ) );
    
    /** …place that widget before the footer */
    add_action( 'genesis_before_footer', 'mp_cta_genesis' );
    
    /** …and display it site-wide */
    function mp_cta_genesis() {
    if ( is_single() ) {
    		genesis_widget_area( 'cta-1', array(
    			'before' => '<div id="cta"><div class="wrap">',
    			'after' => '</div></div>',
    		) );
     
    	}
    }

    /* CSS FOR ABOVE */

    #cta {
    background-color: #333;
    color: #fff;
    clear: both;
    font-size: 20px;
    font-size: 1.25rem;
    line-height: 1.625;
    overflow: hidden;
    padding: 64px 0;
    padding: 4rem 0;
    }
    
    #cta .wrap {
    padding: 0 5%;
    }
    
    #cta a.cta-button:hover {
    color: #222;
    }
    
    #cta a:hover {
    color: #FFF;
    }

    Let’s build a website together…

  • 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