• Resolved BonesUser

    (@bonesuser)


    Hi users,

    The plugin works great! One question though. Throug the .js and .min.js files I was able to add some styling elements (line 35). However, I can’t get the width of the clone to screenwide.

    Width: auto or Width 100% result in a maximum sized clone (roar..) for the specific div, in which my .nav is loaded. However, when scrolled, I need the width of this div to be screenwide. How can I accomplish this?

    Thanks!

    BonesUser

    https://wordpress.org/plugins/sticky-menu-or-anything-on-scroll/

Viewing 1 replies (of 1 total)
  • Hi! Thanks for using my plugin.

    The plugin is coded in such a way that the width of the cloned element will always be the exact same width of the original element. I do not recommend changing the plugin’s JS code, as this may be overwritten again as soon as the next update is released and installed.

    So from what I understand, is that you only want the element to be screen-wide when it’s actually sticky, correct? If that’s the case, you could add this to your CSS and see if that does the trick:

    .cloned {
        width:100% !important;
    }

    If this doesn’t do what you want it to do, please share a link to your site so I can see the actual problem and diagnose it by looking at the code.

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Sticky Menu (or Anything!) clone width’ is closed to new replies.