• 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

Lifestyle Pro Widgets

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 › General Discussion › Lifestyle Pro Widgets

This topic is: not resolved

Tagged: lifestyle Pro

  • This topic has 18 replies, 2 voices, and was last updated 12 years, 5 months ago by Emblem.
Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • December 4, 2013 at 2:31 am #76918
    Emblem
    Member

    Hi

    I have recently upgraded to Lifestyle Pro and am having issues with adding a widget to the bottom of my site just above the footer widgets. Before I upgraded it was fine. I have added

    genesis_register_sidebar( array(
        'id'        => 'after-content-ad',
        'name'      => 'After Content Ad',
        'description'   => 'This is a sidebar that goes after the content.',
    ) );
    

    to functions.php and this to style.css

    .after-content-ad {
    border-bottom: double #ddd;
    border-top: double #ddd;
    font-family: 'Lora', serif;
    font-size: 12px;
    line-height: 1.0;
    overflow: hidden;
    padding: 25px 0;
    text-align: center;
    }

    .after-content-ad p {
    font-size: inherit;
    line-height: 1.0;
    margin: 0;
    }`

    Although the widget appears on the widget list as After Content Ad, it is not showing on the site. Please can you tell me where I have gone wrong?

    Many thx

    http://www.eyebeautytips.com
    December 4, 2013 at 9:12 am #76942
    Brad Dalton
    Participant

    That only registers the widget.

    You also need to hook it in.

    Here's an example of the PHP you need to use.

    Note: Please copy all the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++

    Change the hook to change the position of your widget.


    Tutorials for StudioPress Themes.

    December 5, 2013 at 5:37 am #77156
    Emblem
    Member

    Hello

    This is what I have in my functions.php file

    
    genesis_register_sidebar( array(
    
        'id'            => 'after-content-ad',
    
        'name'          => 'After Content Ad',
    
        'description'   => 'This is a sidebar that goes after the content.',
    
    ) );
    
    add_action( 'genesis_after_content_sidebar_wrap', 'custom_after_content_ad' );
    function custom_after_content_ad() {
    genesis_widget_area( 'after-content-ad', array(
    'before' => '<div class="after-content-ad widget-area">',
    'after'	 => '</div>',
    ) );
    }

    Unfortunately the widget appears at the top of the home page next to the breadcrumbs. (marked by 't') Can you please tell me what I have done wrong?

    December 5, 2013 at 9:05 am #77195
    Emblem
    Member

    Addendum

    The widget works perfectly well on pages which have the full width layout

    such as

    http://www.eyebeautytips.com/about/contact/

    December 5, 2013 at 9:06 am #77196
    Emblem
    Member

    Addendum

    The widget works perfectly well on pages which have the full width layout such as
    http://www.eyebeautytips.com/about/contact/

    December 5, 2013 at 9:24 am #77200
    Brad Dalton
    Participant

    Link to your site please.

    Try changing to the genesis_before_footer hook.

    Is it for the front page only or site wide?


    Tutorials for StudioPress Themes.

    December 5, 2013 at 9:35 am #77202
    Emblem
    Member

    hi

    I have just changed it to genesis_before_footer hook. However it takes a while for changes to show with or without caching plugin activated

    I would like it to be site wide.

    December 5, 2013 at 9:38 am #77203
    Brad Dalton
    Participant

    Link to your site please so i can can try and work out what the problem is.


    Tutorials for StudioPress Themes.

    December 5, 2013 at 9:49 am #77216
    Emblem
    Member

    http://www.eyebeautytips.com

    December 5, 2013 at 10:05 am #77225
    Emblem
    Member

    http://www.eyebeautytips.com

    December 5, 2013 at 10:41 am #77235
    Emblem
    Member

    I have added the link http://www.eyebeautytips.com several times but it does not reflect in this post. Sorry if it just takes a long time.

    December 6, 2013 at 12:59 am #77321
    Emblem
    Member

    December 9, 2013 at 3:06 am #77796
    Emblem
    Member

    I have changed the hook to to the genesis_before_footer. It is not showing on the site.
    If I add 'genesis_after_content_sidebar_wrap it only appears in the correct position on pages without any sidebar widgets.

    I have tried deactivating all plugins and adding it to another site. The same thing occurs. I think that I may be using the wrong code but I have tried many variations.
    Please can you help as I need this widget for an advertiser.

    December 9, 2013 at 3:10 am #77797
    Emblem
    Member

    Contradiction. The widget is now showing but is not the position that I need.

    December 9, 2013 at 1:52 pm #77872
    Brad Dalton
    Participant

    I see the t . Isn't that where you want it? Before the footer?

    adding a widget to the bottom of my site just above the footer widgets.


    Tutorials for StudioPress Themes.

    December 10, 2013 at 3:56 am #78011
    Emblem
    Member

    Hi

    If you take a look at

    you will see where I have added 'eye beauty tips' to the new widget. This page has no sidebars at all. This is where I want the widget to appear throughout the site.

    However on the front page

    and all post pages

    the new widget appears at the top of the page and underneath the sidebars.

    The hook I am using is 'genesis_after_content_sidebar_wrap'. This worked perfectly well before I upgraded to Lifestyle Pro.
    I have tried all the other hooks but nothing works for me.

    December 11, 2013 at 2:11 am #78293
    Emblem
    Member

    Hi

    I would like the widget to be site wide and positioned before the 3 footer widgets, not before the footer. I am using the hook 'genesis_after_content_sidebar_wrap'. If you take a look at

    you will see I have written 'eye beauty tips' in the widget but it is broken up and appears next to the breadcrumbs and at the bottom of the primary sidebar.

    However on pages with full width content it appears in the correct position, for example.
    .

    I have tried all the hooks but none are working for me. This worked before I upgraded to Lifestyle Pro.

    December 11, 2013 at 7:43 am #78308
    Emblem
    Member
    December 11, 2013 at 7:45 am #78311
    Emblem
    Member

    Eye Beauty Tips
    Example Page

  • Author
    Posts
Viewing 19 posts - 1 through 19 (of 19 total)
  • The forum ‘General Discussion’ 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

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