Community Forums › Forums › Archived Forums › Design Tips and Tricks › Minimum Pro theme Primary Nav and Slider placement
- This topic has 4 replies, 3 voices, and was last updated 10 years, 10 months ago by
asbilly92.
-
AuthorPosts
-
December 20, 2013 at 4:03 pm #80511
asbilly92
ParticipantOk 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/wordpress1December 20, 2013 at 7:21 pm #80547emasai
ParticipantAt 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.comDecember 20, 2013 at 9:49 pm #80558asbilly92
ParticipantOk 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 #103288Sridhar Katakam
Participanthttp://www.amystout.com/wordpress1 is blank. What's the URL where the problem can be seen?
May 9, 2014 at 8:13 am #104280asbilly92
ParticipantSridhar, 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 😉
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.