Modern Portfolio – adding additional widget area above about

Community Forums Forums General Discussion Modern Portfolio – adding additional widget area above about

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Steve@BHQ 11 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #61565

    Steve@BHQ
    Participant
    Post count: 94

    I’m trying to add an additional widget area above the “about” widget area on the home page in order to add the Genesis – Responsive Slider. I duplicated the widget area code in the functions.php file, changed the name accordingly (slider) see below. It now shows in the dashboard, but not on the home page. What else do I need to do to make it show on the home page? Thank You, Steve

    `/** Register widget areas */
    genesis_register_sidebar( array(
    ‘id’ => ‘slider’,
    ‘name’ => __( ‘Slider’, ‘mp’ ),
    ‘description’ => __( ‘This is the slider section.’, ‘mp’ ),
    ) );
    genesis_register_sidebar( array(
    ‘id’ => ‘about’,
    ‘name’ => __( ‘About’, ‘mp’ ),
    ‘description’ => __( ‘This is the about section.’, ‘mp’ ),
    ) );
    genesis_register_sidebar( array(
    ‘id’ => ‘portfolio’,
    ‘name’ => __( ‘Portfolio’, ‘mp’ ),
    ‘description’ => __( ‘This is the portfolio section.’, ‘mp’ ),
    ) );
    genesis_register_sidebar( array(
    ‘id’ => ‘services’,
    ‘name’ => __( ‘Services’, ‘mp’ ),
    ‘description’ => __( ‘This is the Services section.’, ‘mp’ ),
    ) );
    genesis_register_sidebar( array(
    ‘id’ => ‘blog’,
    ‘name’ => __( ‘Blog’, ‘mp’ ),
    ‘description’ => __( ‘This is the Blog section.’, ‘mp’ ),
    ) );

    http://www.316design.com/
    #61623

    Robin
    Participant
    Post count: 151

    Hey Steve, your site looks great! You need to add the following code to your home.php in the section that starts with function mp_homepage_widgets. Since you want the slider to go before the about section, place the code before the one labeled ‘about’.

    genesis_widget_area( 'slider', array(
    		'before' => '<div id="slider"><div class="wrap">',
    		'after' => '</div></div>',
    	) );
    

    Hope that helps a bit.


    Need help customizing your website? Let me know at RKW Media.

    I’m taking up The Challenge by answering some of the Unanswered Posts.

    #61674

    Steve@BHQ
    Participant
    Post count: 94

    Thank you for the compliments. That worked great! Thank You.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Modern Portfolio – adding additional widget area above about’ is closed to new replies.