Community Forums › Forums › Archived Forums › General Discussion › Altitude Pro Theme – Main menu fixed
Tagged: Altitude Pro Theme Menu
- This topic has 13 replies, 2 voices, and was last updated 9 years, 1 month ago by
Christoph.
-
AuthorPosts
-
January 21, 2016 at 10:52 am #177093
andrearicchiweb
MemberHello! I have one answer for this theme:
http://my.studiopress.com/themes/altitude/#demo-full
I would like to have the main menu bar (Overview Features Pricing Testimonials FAQs Sign Up Contact) always fixed with the black background, is it possible?
For example as nomadicmatt.com
Thanks
AndreaJanuary 21, 2016 at 2:15 pm #177106Christoph
MemberHi Andrea,
you can use the second option to only use the dark site header:
http://www.christophherr.com/how-to-use-the-darker-site-header-in-altitude-pro-by-default/
January 22, 2016 at 4:58 am #177153andrearicchiweb
Memberthis is global.js
jQuery(function( $ ){ if( $( document ).scrollTop() > 0 ){ $( '.site-header' ).addClass( 'dark' ); } // Add opacity class to site header $( document ).on('scroll', function(){ if ( $( document ).scrollTop() > 0 ){ $( '.site-header' ).addClass( 'dark' ); } else { $( '.site-header' ).removeClass( 'dark' ); } }); $( '.nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu' ).addClass( 'responsive-menu' ).before('<div class="responsive-menu-icon"></div>'); $( '.responsive-menu-icon' ).click(function(){ $(this).next( '.nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu' ).slideToggle(); });
i have comment from 3 to 18 line
/* if( $( document ).scrollTop() > 0 ){ $( '.site-header' ).addClass( 'dark' ); } // Add opacity class to site header $( document ).on('scroll', function(){ if ( $( document ).scrollTop() > 0 ){ $( '.site-header' ).addClass( 'dark' ); } else { $( '.site-header' ).removeClass( 'dark' ); } }); */
and in functions.php I insert in the top page
//* Add class dark to .site-header add_filter( 'genesis_attr_site-header', 'altitude_add_class' ); function altitude_add_class( $attributes ) { $attributes['class'] = $attributes['class']. ' dark'; return $attributes; }
but doesn't work! All looks the same
January 22, 2016 at 9:14 am #177178Christoph
MemberHi,
just to avoid that you are not running the snippet too early, put the code at the bottom of the functions.php.
http://screencast.com/t/5ei69H2CaRMake sure you have saved your changes, cleared any caching from your host, cloudflare or caching plugin and cleared cache and cookies of your browser. (Or use a hard refresh (on Windows is Ctrl + F5) or a incognito window/privacy mode)
January 22, 2016 at 11:01 am #177192andrearicchiweb
MemberThanks for your reply Christoph!
I have made all steps you told me but nothing change, this is the website: http://www.yourtourleader.com/I am checking also the box where you see "Discovering Modena and Bologna", I try to change the css in syle.css but it seems the application don't read my modify, but maybe it's another problem
Wait for some ideas
January 22, 2016 at 11:25 am #177195Christoph
MemberCan you give me an URL to bypass the coming soon page or deactivate your coming soon plugin?
January 23, 2016 at 11:41 am #177268andrearicchiweb
MemberI did Christoph, right now it works! it would be a refresh problem but I cleared any caching by WP Fastest Cache and browser setting and I didn't see no variations, what am i missing?
January 23, 2016 at 12:02 pm #177270Christoph
MemberLooks perfect to me:
http://screencast.com/t/dAR1oR1oMust be some stubborn caching in your browser.
January 23, 2016 at 12:05 pm #177271andrearicchiweb
MemberThanks so much Christoph, just one more thing, about this?
I am checking also the box where you see “Discovering Modena and Bologna”, I try to change the css in syle.css but it seems the application don’t read my modify, but maybe it’s another problemJanuary 23, 2016 at 12:19 pm #177274Christoph
MemberWhat to you want to change about it?
Chances are, your browser cache didn't let you see the changes.
January 23, 2016 at 12:42 pm #177276andrearicchiweb
Memberthis is a problem about css, if you see the website the text "Discovering Modena and Bologna...." is a text widget, i would like the background white by css, but by trying many class, it doesn't work, the only solution is insert into the widget the text with the code, i don't like this solution because i want find the way by css file, what's wrong?
January 23, 2016 at 12:50 pm #177279Christoph
MemberOk,
you already have the class
.homenewsletter-intro
You can add something like the following to the style.css
.homenewsletter-intro { background-color: #fff; }
http://screencast.com/t/Wz7ymd4v5SM
If you only want to target the title
.homenewsletter-intro h3 {
background-color: #fff;
}http://screencast.com/t/yakoOHpZ
January 25, 2016 at 10:44 am #177458andrearicchiweb
MemberThanks so much Christoph! Now it works, just a cache problem 😉
January 25, 2016 at 10:47 am #177459Christoph
MemberYou are welcome.
I´m happy to hear it's all working now.Could you please mark this topic as resolved, so it can be closed?
Thank you.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.