WordPress.org

Ready to get started?Download WordPress

Forums

Genesis eNews Extended
[resolved] Insert widget into Breadcrumb area (Genesis) (3 posts)

  1. derrynairn
    Member
    Posted 1 year ago #

    Hello Brandon

    Many thanks for what seems a superb plugin.

    I was wondering if you could tell me the code to call up an eNews form directly into my template?

    For example, I have a line of Breadcrumb text along the top of each page on my site (twistbikes.com) and I'd like to have the eNews form in there (between the dotted lines to the right).

    At the moment it sits up in the Header Right widget area.

    Any tips or clues would be much appreciated.

    Thanks,
    Derry

    http://wordpress.org/extend/plugins/genesis-enews-extended/

  2. Brandon Kraft
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Hi Derry,

    As of now, it only exists as a widget, so you'll need to:

    1. Declare a widget area
    2. Add the code to add the widget area to your template
    3. Add the widget via Appearance->Widgets as normal

    Customize and add this to your functions.php:

    // Register widget area
    genesis_register_sidebar( array(
    	'id'  		=> 'sample',
    	'name'		=> __( 'Sample', 'custom-theme-text-domain' ),
    	'description'	=> __( 'This is the sample widget area description.', 'custom-theme-text-domain' ),
    ) );

    To add the widget area to your templates, then add:
    dynamic_sidebar( 'sample' ); (with sample matching the ID given to your widget area above.

    [Edit: The Visual Hook Guide here: http://genesistutorials.com/visual-hook-guide/ can help you figure out the Add Action area. Brian Gardner's post gives an idea of another way too. http://www.briangardner.com/home-widget-area-eleven40/ \

    Hope that helps! Cheers!

  3. derrynairn
    Member
    Posted 1 year ago #

    Thank you Brandon. Your first method worked a treat!

    5 star rating coming up..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.