I wanted to have a sticky menu, so i copied Toms code from December 13, 2014 at 10:10 am into my functions.php and NOT in my child theme 🙁
Now I can’t enter my page obviously, due to syntax error:
Parse error: syntax error, unexpected ‘wp_enqueue_script’ (T_STRING) in /www/htdocs/w014b720/dunstabzugshaube-umluft-test.de/wp-content/themes/generatepress/functions.php on line 654
It was so dump of me to copy it not in a child theme.
I added the CSS and PHP to the files, but the menu and header are simply fixed, instead of a menu-scroll-to-top-and-stick.
Anything I’m doing wrong there?
I’m trying with the Menu add ons too. Basically, I don’t really want the header and navigation to be stuck together.
Maybe it is the .js that I brought over from Exhibit. I’ll try removing that. Maybe I just have a bunch of conflicts since I started messing with things. I’ll start over and if you have any advice, I’ll hear it. I might have this licked in a few.
I have a basic question. How do I make a sticky menu? Not using a child theme, but I don’t see an option in GP premium, so perhaps I am missing something.
is it possible to use the above solution to also make the secondary nav sticky? mine is below my header now and i’d like the header to disappear as the user scrolls and the secondary nav stick under the sticky primary menu that i set within the customizer.