<? php wp_head(); ? > = FIXED when scrolling in wordpress?

Asked

Viewed 101 times

-1

Hey, guys, I was wondering how I can get my menu fixed when I scroll the browser, regardless of the theme I’m using, until I’m using a free Customify theme and I saw that it doesn’t give me that possibility, pro version and wanted to do this via msm code.

  • Via CSS, colcoando posistion:Fixed. But this can bring other problems to your layout. You have this plugin, test: https://wordpress.org/plugins/fixed-and-sticky-header/

  • Yes, via CSS I know it gives, wanted something more specific and own wordpress, if possible (using the menu I’m already using), msm so, thank you for your support!

  • Problem solved. I discovered a plugin I had used a while ago and had forgotten about it. The name of the plugin is "myStickymenu". With it I can put any menu to the "Sticky" function when scrolling the browser scroll! ;D

1 answer

0

try going to your wp CSS editor, and add the following code:

.site-header{
position:fixed;
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.