Since I seen a lot of your interest in this simple plugin I decided to publish some of the classes and custom css required for myStickymenu to work properly with different themes. I’ll update this post as time passes, please post a comment with your settings for other themes if feel like helping sticky community π
So lets start, I’ll put only alerted settings here, use defaults for the rest of the settings or customize it to your own needs.
Celestial-Lite (sticky header)
** Sticky Class => #branding
** .myfixed css class => .myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; } .myfixed #site-navigation { margin-top:0px!important; } .myfixed #logo img {width: 200px;}
Church Theme
** Sticky Class => #menu-hauptnavi
Customizr Theme
** Sticky Class => .row-fluid (for header) or .nav (for menu)
CyberChimps
** Sticky Class => .navbar-inner
Decode
** Sticky Class => .header-menu
** Make visible when Scrolled after => 370
** .myfixed css class => .myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; padding-top:5px; padding-bottom:5px; }
Genesis / Dynamik Theme
** Sticky Class(sticky header) =>.site-header
** Sticky Class(sticky menu) =>.nav-primary
Graduate
** Sticky Class => .main-navigation
Graphene
** Sticky Class => #header-menu-wrap
Illdy
** Sticky Class => .top-header
** Disable at Small Screen Sizes => 993
Illdy (mobile support)
** Sticky Class => .header-blog
** CSS Style => #mysticky-nav .myfixed { margin:0 auto; float:none; border:0px; background:none; max-width:100%; } .myfixed .bottom-header {display:none;}
Lawyer theme
** Sticky Class => .wrapper
** .myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; } .myfixed { padding-left: 0px; padding-bottom: 0px; padding-top: 0px; } .wrapfixed { -webkit-box-shadow: 0 8px 6px -6px rgba(68,68,68,0.6); -moz-box-shadow: 0 8px 6px -6px rgba(68,68,68,0.6); box-shadow: 0 8px 6px -6px rgba(68,68,68,0.6); } .myfixed .logo img { max-height: 45px; } .myfixed .quick-info { display: none; } .myfixed .mainmenu { margin: 0px } .myfixed .mainmenu { padding-top: 7px; }
Max Magazine
** Sticky Class => #nav
** Make visible when Scrolled after => 250
** .myfixed css class => .myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; } #nav { min-height:40px!important; }
Naturo Lite
** Sticky Class => .header-inner
Nirvana Template
** Sticky Class => #access
OceanWP
** Sticky Class => #site-header
Responsive
** Sticky Class => .main-nav
** Make visible when Scrolled after => 250
** .myfixed css class => .myfixed { margin:0 auto!important; float:none!important; border:0px!important; max-width:100%!important;} .myfixed .menu { background:none!important;}
Spacious
** Sticky Class => #masthead (sticky header)
** Make visible when Scrolled after => 250
** .myfixed css class => .myfixed { margin:0 auto!important; float:none!important; border:0px!important; max-width:100%!important;} .myfixed #site-description { display:none;} .myfixed #site-title a { font-size: 24px; } .myfixed #header-text { padding:0px!important;} .myfixed .main-navigation { padding-top: 0px!important; }
Storefront
** Sticky Class => .main-navigation
Suits
** Sticky Class => .navbar
Tempera Template
** Sticky Class => .menu
Travelify
** Sticky Class => #main-nav
Twenty Sixteen
** Sticky Class => .site-header-main
Twenty Ten
** Sticky Class => .menu
** Make visible when Scrolled after => 370
** .myfixed css class => .myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; } .menu {min-height:38px;}
Twenty Eleven
** Sticky Class => #access
** Make visible when Scrolled after => 600
** .myfixed css class => .myfixed { float:none!important; max-width:100%;}
.myfixed .menu { background-color:none; float:left; }
.myfixed div { margin: 0px!important ; padding: 0px 7.6%; }
Twenty Eleven (add search to sticky menu bar)
** Sticky Class => #branding
** Make visible when Scrolled after => 600
** .myfixed css class => .myfixed { margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important; } .myfixed a {display:none;} #mysticky-wrap {min-height:500px;} .myfixed #site-title, .myfixed #site-description{display:none;} .myfixed #access { margin: 0px auto 0px; } .myfixed #searchform { top: 0.3em!important; }
Twenty Twelve
** Sticky Class => .nav-menu
** Make visible when Scrolled after => 250
Twenty Thirteen (sticky header – add your own custom logo image and edit to suite your needs)
** Sticky Class => #masthead
** .myfixed css class => .myfixed { margin:0 auto; max-width:1070px; width:100%!important;} .myfixed .search-form, .myfixed .site-description, .myfixed .site-title { display:none;} .myfixed .home-link { max-width: 55px; min-height: 38px; margin-left:20px; float:left; background-image: url('logo.png'); } .myfixed .navbar { max-width:645px; float:right;} .wrapfixed .navbar { background-color: transparent; } .wrapfixed ul { padding-right:0px; }
Webnus netStudio theme
** Sticky Class =>.nav-wrap2
Weblizar
** Sticky Class => .row
Wrock Metro Theme (entire header)
** Sticky Class =>#navigation
more to come soon!
Here is a nice list of CSS Classes for menus in all WPZOOM Themes. Big thanks to guys from WPZOOM Themes.
myStickymenu plugin page.
Hi! plugin is not working with ASTRA theme (free version). can you help me? Astra has in premium version sticky header. is it the reason?
try #masthead
Hi
I have problems with the sticky menu plugin …. when the browser window is resized i doesn’t work correctly. π
Any help on this?
//Lars, Copenhagen
Hi there
Love the plugin but on the theme I’m using – Radcliffe – once I’ve scrolled past the original menu and sticky takes over, the hamburger menu is disabled on tablet and mobile devices. Is there a fix for that?
Thanks
Paul
You can disable plugin for small screens… since mobile sub menu is not in the same div element as your menu there is no simple solution for that. Or if you can, edit your template and add both menus into one div. Add class to newly created div and use same class as Sticky class in plugin settings.
So, you’re saying the mystickymenu plugin isn’t designed to make the menu sticky (and work) on mobile devices?
Plugin is not designed for your theme or vice versa… but as I said before you can fix this by wrapping both div’s inside one div…
Hi! Love it!! Trying to stick just menu bar at top…it is below the header…
I’m not able to see your website so I’m unable to help, all I can see is image and “We are doing some work on the site and will be back shortly.” message…
Hi – is there a way to disable this on desktop? I see an option to disable on mobile but I actually only want the sticky option on mobile..
Hello, there is no option for that right now but I will try to add this option to next update. Thank you
In last version 2.0.4 of myStickymenu there is option to disable the menu for large screens, enjoy π
Awesome! Thank you so much for this quick update!
Feel free to review plugin at https://wordpress.org/support/plugin/mystickymenu/reviews/ . It means a lot to plugin itself and if there is more reviews and feedback it’s better chance of a long time support…
Hello,
Thank you very much for developing this plugin. Because my website donΒ΄t start the menu in the top zone, but a few pixels below. Above I have it for the logo.
I give you a link to Imgur. With captures of the parameters that I have for the theme ‘Primer’ (By GoDaddy). In addition there is more information in the description of the images (Class / Style CSS).
I also show you my demonstration website. It is the one I teach to do in my first course at Udemy, where I recommend some plugins, yours one of them.
– Link Imgur: https://imgur.com/a/O6RVo
And I ask you a question at the end… Because I’m interested in knowing how to insert the logo. Before you had it on your website, and I donΒ΄t know if maybe… there is no longer that possibility.
Greetings from Spain!
You can insert the logo, I removed it from my website because too much people asked the same thing over and over again.
To do it insert logo to div which you want to make sticky, and hide it initially with something like this (use plugin css style field):
.your_logo_div img {display:none}
Than simply display it when fixed with this:
.myfixed .your_logo_div img {display:none}
Than make some custom css (depending on theme used) to position your logo.
Hope this helps
How about with Graduate theme? trying for as long as can handle π
Try .main-navigation