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 4 replies, has 3 voices, and was last updated by  asbilly92 2 months, 2 weeks ago.

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

    asbilly92
    Participant
    Post count: 27

    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: 648

    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: 27

    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 ;-)

    #103288

    Sridhar Katakam
    Participant
    Post count: 923

    http://www.amystout.com/wordpress1 is blank. What’s the URL where the problem can be seen?


    #104280

    asbilly92
    Participant
    Post count: 27

    Sridhar, thank you for responding!

    I had posted that a while ago and I did find a solution for it!

    I my mind I was correct that the nav, minimum_slider, and minimum_site_tagline were all then indeed ‘competing’ for the same ‘genesis_after_header’ area!

    I did NOT use the above code that I pasted before, instead I changed the order of the functions; or the # at the end of the add_actions and that worked.
    For example the #’s at the end of my add_actions now look like this:

    add_action( ‘genesis_after_header’, ‘minimum_slider’, 16 );

    add_action( ‘genesis_after_header’, ‘minimum_site_tagline’, 17 );

    Now I have the order of: nav, slider, site tagline.

    Thank you ;-)

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

You must be logged in to reply to this topic.