• 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

AgentPress Pro "After Entry" Widget

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 › AgentPress Pro "After Entry" Widget

This topic is: not resolved

Tagged: After Entry, After_Entry, Agentpress, Agentpress Pro, widget areas

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 11 months ago by Frank.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 7, 2014 at 3:44 pm #127024
    arretx
    Member

    Greetings everyone! Thanks for reading. I'm trying to accomplish what should be a relatively simple task, but I need some insight.

    On the AgentPress Pro theme, there is a widget area entitled "After Entry" which produces results what appears to be only on single blog posts "After" the entry...naturally.

    In the Functions file for the theme, the following exists already:

    //* Add support for after entry widget
    add_theme_support( 'genesis-after-entry-widget-area' );
    
    //* Relocate after entry widget
    remove_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' );
    add_action( 'genesis_after_entry', 'genesis_after_entry_widget_area', 5 );

    Question 1: What does the "5" in the add_action do?
    Question 2: For this theme, is there a way to display the "After Entry" widget below a Page in addition to Single posts? If so, what would I add to the Functions file to accomplish this?

    Thank you so much for your time.

    http://www.realscottsdaleliving.com/buying-a-home/
    October 7, 2014 at 4:02 pm #127025
    arretx
    Member

    Okay guys, I've answered my own question with the help from the Andrea Whitmer over at http://www.NutsAndBoltsMedia.com.

    In the functions file, I added the following:

    genesis_register_sidebar( array(
    	'id'		=> 'pagewidget',
    	'name'		=> __( 'Page Widget', 'nabm' ),
    	'description'	=> __( 'This is the widget area for a specific page.', 'nabm' ),
    ) );
    add_action( 'genesis_after_entry', 'nabm_add_page_content' );
    function nabm_add_page_content() {
    	if(is_page()) {
    	genesis_widget_area( 'pagewidget', array(
    		'before' => '<div class="entry">',
    	) );
    	}
    }

    If you look below any page entry, you'll see a new widget area on my site at http://www.RealScottsdaleLiving.com

    April 3, 2015 at 2:36 pm #146583
    Frank
    Member

    Hi, for some reason this is not working anymore.

    The new widget area does appear in the backend, but all widgets inside it do not appear in pages. Can anyone say how to fix this in the latest version of the theme?

    Thanks in advance!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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

© 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