× Please select the right Template below! And please insert a live URL where we can see what do you mean. A screenshot is helpful too.

question-circle [SOLVED] Sticky main menu

  • Posts: 17

Sticky main menu was created by TorstenL

Good morning,

I got a question regarding the behaviour of the main menu: currently, if the option "Fixed Navigation" is turned on, the menu is using the "uk-animation-slide-top"-markup so the menu disappears for a second if I scroll down the page and then it appears again.

I want to use the "Fixed Navigation" but without the menu disappearing. How can I change this?

I wish you all a healthy start into the New Year 2016.

Best regards
Torsten
6 years 9 months ago #1

Please Log in or Create an account to join the conversation.

  • Posts: 17

Replied by TorstenL on topic Sticky main menu

I´ve changed the following value in the file "templates/jp-adventures/layouts/theme.php" to "0":
{top:-200, animation: 'uk-animation-slide-top'}

I guess this value will be overwritten with the next template update? Can I put this string in a custom php-file so that the changes persist?

Thanks again
Torsten
6 years 9 months ago #2

Please Log in or Create an account to join the conversation.

  • Posts: 8377

Replied by joomlaplates on topic Sticky main menu

To do so, create the /styles/YOUR STYLE/layouts directory, copy the file in there and start adding your own PHP code.
1.) Create your own style ( Customizer > Copy Style > Save)
2.) Select the new created Style as default ( Template Options > Layouts)
3.) Copy the folder layouts into your new created style folder

You own styles will not be overridden while template updating


Attachment layouts.jpg not found

Last edit: 6 years 9 months ago by joomlaplates.
6 years 9 months ago #3
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 17

Replied by TorstenL on topic Sticky main menu

Hello Peter,

thanks again for your quick and helpful post, followed your instructions and all is setup now.

Best wishes
Torsten
6 years 9 months ago #4

Please Log in or Create an account to join the conversation.

  • Posts: 8377

Replied by joomlaplates on topic [SOLVED] Sticky main menu

Problem solved.
6 years 9 months ago #5

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Outstanding Support

24/7 Personal Email & Forum Support

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2022 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License