• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Minimum Pro theme Primary Nav and Slider placement

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

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

This topic is: not resolved

Tagged: Minimum Pro theme Primary Nav and Slider placement

  • This topic has 4 replies, 3 voices, and was last updated 8 years, 10 months ago by asbilly92.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • December 20, 2013 at 4:03 pm #80511
    asbilly92
    Participant

    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
    December 20, 2013 at 7:21 pm #80547
    emasai
    Participant

    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

    December 20, 2013 at 9:49 pm #80558
    asbilly92
    Participant

    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 😉

    May 2, 2014 at 1:05 am #103288
    Sridhar Katakam
    Participant

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


    Genesis Tutorials | Follow me on Twitter

    May 9, 2014 at 8:13 am #104280
    asbilly92
    Participant

    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 😉

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble