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.

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

  1. Hi,
    Great plugin. Simple to use and looks great.
    I have a slight issue with some web page images appearing in front of the sticky menu.
    Is there a method of bringing to the front the sticky Menu so that images don’t appear?

  2. I’ve used this my sticky header has irritating white background while slightly scroll down. It caused by i changed “Make visible on Scroll = 10px” and “Make visible on Scroll at Homepage=10px” then reset these settings as “0”but when i deactivate this plugin and use another plug-in for make header sticky there occurs white annoying background below the header ! Now re-activate this plugin now but this problem stays there !

    How can i avoid this ? I think this adjustments change permanently on my script variables into my website

    Sorry, im new at js and jquery and dont know how to return old version of this. Also noted that, i did not backup my website

    1. Hey Sebastian

      I’m also using Elementor.
      When I added the scroll menu it seems to disable my Parallax images, how are your parallax images created? via Elementor or another plugin?


Leave a Reply

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