myStickymenu – Extended style functionality using .myfixed sticky class

So as I said and explain before here myStickymenu is based on javascript which will add .myfixed css class to any predefined element class after scroll by default.

This way we can have custom css style for Sticky class (.myfixed) as well as .wrapfixed and .up and .down classes.

.myfixed css class can be modified through dashboard plugin settings under “Style” tab and “CSS Style” field.

These are defaults:

#mysticky-nav .myfixed { 
margin:0 auto; 

Example 1: Change background color on scroll down or up (Earlier setting for “Sticky Background Color” will be overridden)

#mysticky-nav.wrapfixed.up { 
#mysticky-nav.wrapfixed.down { 

Example 2: Define custom link color while menu is sticky (presuming that your “Sticky class” is “navbar”).

.navbar li a {
#mysticky-nav .navbar.myfixed li a {

Example 3: Add shadow to sticky menu

#mysticky-nav.wrapfixed { 
-webkit-box-shadow: 0 2px 2px 0px rgba(66,66,66,0.3); 
-moz-box-shadow: 0 2px 2px 0px rgba(66,66,66,0.3); 
box-shadow: 0 2px 2px 0px rgba(66, 66, 66, 0.3); 

Nice tutorial on how to create sticky header for WordPress using the Bosco theme and myStickymenu – How To Add A New Yorker Style Header To Your WordPress Site (same principle should work for any theme)

Back to myStickymenu plugin page.

83 thoughts on “myStickymenu – Extended style functionality using .myfixed sticky class

  1. Hi! I love the look of the plugin and it’s working great on my site. Could you tell me how to modify it to force it to be present on load and before scroll? I see it somewhat in this post but not savvy enough to make the correct change on my own site. Thank you!

  2. Hi, thanks for the tutorial.
    I’m trying to make the background color of the sticky menu transparent, but keep the text of the menu items at 100% opacity. Do you have any ideas on how to accomplish this?


    1. Ok in case anybody has the same question, I found the answer.
      In the sticky menu settings, change opacity to 100%.
      Then go to and select the color and opacity you want for the background color. Then copy paste the RGB color in the background color field in your sticky menu settings.


  3. Hi,

    Thanks for an excellent plugin.

    I am using it one two sites but have just hit a problem. The sticky menu works great on my posts and pages but when I add a lightbox to show images, the menu sticks to the top of the light box. I thought the sticky menu will only show on scroll (my experience on posts and pages) but the lightbox is obviously not being scrolled.

    How can I disable the sticky menu when the light box is displayed? The menu is hiding the top part of photos and that is not good for the gallery view.

    Thanks in advance.

  4. Hey, This plug in looks great. But somehow I could not work around it for my website. I am using a wordpress theme called business3ree by cssigniter.
    Thank you for the help in advance.

Leave a Reply

Your email address will not be published. Required fields are marked *