- This topic has 14 replies, 4 voices, and was last updated 7 months, 1 week ago by
Tom.
-
AuthorPosts
-
June 14, 2020 at 8:22 am #1327525
rafel jesus
Hi there.
I have a question, Can I do in the main menu a white background but only in some pages with elements?
And the second question is Can I do fix the main menu but in all pages except the principal with elements?
If it’s yes, How can I do?
Thanks from Balaguer
Best wishes.
From Balaguer, near of BarcelonaJune 14, 2020 at 12:27 pm #1327704Leo
StaffCustomer SupportHi there,
Not sure if I understand.
Can you disable the maintenance mode so I can see your set up?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 14, 2020 at 12:41 pm #1327725rafel jesus
Hi Leo.
The first part I did with elements.
I only need to fix the primary menu in some pages exclude the home page.The web site is under construction if you need to see something we’ll synchronize for seeing something very quickly.
Thanks.Best wishes.
From Balaguer, near of BarcelonaJune 14, 2020 at 4:44 pm #1327919Tom
Lead DeveloperLead DeveloperHi there,
You can adjust the navigation colors using the Header Element, so if you build a Header Element for a set of pages, you can adjust the navigation colors for those pages.
As for the fixed menu – are you trying to set up the sticky navigation only on some pages? That’s a bit harder. Are you wanting to disable it only on some pages, or enable it only on some pages?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJune 14, 2020 at 9:01 pm #1327990rafel jesus
Hi there.
The colors Header Element for some pages I did and in those pages, I’d want to sticky navigation but only in those pages.
Now when I do scroll the primary navigation is fixed in all the pages, I’d want to sticky navigation but only in those pages.
Thanks from BalaguerBest wishes.
From Balaguer, near of BarcelonaJune 15, 2020 at 8:49 am #1328824Leo
StaffCustomer SupportSo now the issue is turning off the sticky navigation on some pages?
If so try this PHP snippet:
add_filter( 'option_generate_menu_plus_settings', function( $settings ) { if ( is_page( array( 1, 2, 3 ) ) ) { $settings['sticky_menu'] = 'off'; } return $settings; } );
Adding PHP: https://docs.generatepress.com/article/adding-php/
https://codex.wordpress.org/Conditional_Tags#A_PAGE_PageMake sure to replace
1, 2, 3
with the actual page ids.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 15, 2020 at 10:03 am #1328915rafel jesus
Hi Leo.
I’m going to try and say to you.
Thanks from Balaguer.Best wishes.
From Balaguer, near of BarcelonaJune 15, 2020 at 11:02 am #1328985rafel jesus
Hi Leo.
I did with code snippets because I work with Child Theme, but the code didn’t work.
Thanks from BalaguerBest wishes.
From Balaguer, near of BarcelonaJune 15, 2020 at 1:47 pm #1329119Leo
StaffCustomer SupportWhat is the actual code you are using?
Can you link me to the page that’s not working?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 15, 2020 at 9:53 pm #1329378rafel jesus
Hi Leo.
Where can I send access to the backend of this website.?
ThanksBest wishes.
From Balaguer, near of BarcelonaJune 15, 2020 at 9:54 pm #1329381Leo
StaffCustomer SupportI don’t need the dashboard access just yet.
Can you send me the live link to the website?
You can edit the original topic and use the private URL field.
Let me know 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 15, 2020 at 9:57 pm #1329384rafel jesus
The website is under construction and the pages aren’t visible.
Best wishes.
From Balaguer, near of BarcelonaJune 15, 2020 at 10:19 pm #1329393rafel jesus
Hi
Say me if you can see.
https://www.lotapis.cat/cortines/Best wishes.
From Balaguer, near of BarcelonaJune 16, 2020 at 1:59 am #1329586David
StaffCustomer SupportThat link says under construction.
You can send the Site Login details using the Account Issue form here:https://generatepress.com/contact/
Please add the URL of this forum topic to the form as well.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 16, 2020 at 5:02 pm #1330619Tom
Lead DeveloperLead DeveloperSo right now you have the sticky navigation turned off in the Customizer.
The function Leo provided actually turns it “on” as the theme only looks for a non-false value.
So the function is working, it’s turning the sticky navigation “on” within the page you specified.
If you want to disable the sticky navigation only on some pages, you would turn it on in the Customizer, then do this:
add_filter( 'option_generate_menu_plus_settings', function( $settings ) { if ( is_page( array( 1, 2, 3 ) ) ) { $settings['sticky_menu'] = 'false'; } return $settings; } );
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.