Minimum Pro theme Primary Nav and Slider placement

Community Forums Forums Design Tips and Tricks Minimum Pro theme Primary Nav and Slider placement

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  asbilly92 3 months, 4 weeks ago.

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

    asbilly92
    Participant
    Post count: 22

    Ok I hope this makes sense. I’m using the Minimum Pro theme. I followed this blog post: http://sridharkatakam.com/moving-primary-navigation-tagline-header-minimum-pro/
    and successfully moved my primary nav bar to just under the header.

    Then I also followed another one of his posts: http://sridharkatakam.com/how-to-replace-background-image-in-minimum-pro-with-responsive-slider/#comment-1504 and successfully also added the new widget area for the slider…the problem is that they both are tying to be – right after the header. I need the nav bar to appear first (below the header) and then the slider to follow that. (also kinda under the header) I think they are like competing for the ‘area directly under the header…’? How do I solve this? This is a test-demo site so obviously I’m just getting it ready. The site is: http://www.amystout.com/wordpress1

    Any help would be great! FYI: before adding the slider widget area in there the primary nav bar was perfectly just below the header ;-)

    http://www.amystout.com/wordpress1
    #80547

    emasai
    Participant
    Post count: 471

    At a quick glance, your slider is positioned above the navbar, so you might need to invert the order of your functions. Or possibly place the slider n genesis_before_content_sidebar_wrap – see the hook references http://my.studiopress.com/docs/hook-reference/


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    #80558

    asbilly92
    Participant
    Post count: 22

    Ok yep thank you! Well it does appear that way but I think they are both competing for the ‘genesis-after-header’ area because both the navbar and the slider are referencing that area if you know what I mean. In my functions.php file the navbar does come before the slider….

    I was wondering about using the genesis_before-content-sidebar-wrap idea also but I was unsure how to change the code from the blog post where I obtained it (explaining how to add the slider in) so that it would reflect adding the slider in before the before_content_sidebar_wrap…..

    This is the action part of the code now:

    //* Add home slider between header and tagline
    add_action( ‘genesis_after_header’, ‘minimum_slider’, 9 );

    function minimum_slider() {
    if (is_home() || is_front_page()) {
    printf( ‘<div %s>’, genesis_attr( ‘home-slider’ ) );
    genesis_widget_area( ‘home-slider’ );
    echo ‘</div>’;
    }
    }

    Do you mean to change it to:

    //* Add home slider between header and tagline
    add_action( ‘genesis_before_content_sidebar_wrap’, ‘minimum_slider’, 9 );

    function minimum_slider() {
    if (is_home() || is_front_page()) {
    printf( ‘<div %s>’, genesis_attr( ‘home-slider’ ) );
    genesis_widget_area( ‘home-slider’ );
    echo ‘</div>’;
    }
    }

    That would make sense to me but I wasn’t quite sure….THANK YOU for taking the time ;-)

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

You must be logged in to reply to this topic.