Support » Plugin: Genesis eNews Extended » Insert widget into Breadcrumb area (Genesis)

  • Resolved derrynairn

    (@derrynairn)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Brandon Kraft

    (@kraftbj)

    Happiness Engineer

    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!

    Thank you Brandon. Your first method worked a treat!

    5 star rating coming up..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Insert widget into Breadcrumb area (Genesis)’ is closed to new replies.