- This topic has 14 replies, 2 voices, and was last updated 3 years, 10 months ago by
Leo.
-
AuthorPosts
-
March 29, 2017 at 8:31 am #298956
Georgios
Hello
i have searched for this in the forum but i didnt find the answer
Is there a way to have Different Page header for different pages ?
Example : i have pages : services, contact and i would like different header for page services and different for contact page
i use BB to create 2-3 headers so i want (example) Header1(created with BB) to be for specific page and header2(created with BB) to another page etc.(I was looking at Beaver Tunels but i am not sure if this plugin can do that? anyone has any experience?)
Thank you
GeneratePress 1.3.46March 29, 2017 at 8:33 am #298958Leo
StaffCustomer SupportHi Georgios,
You can use GP’s Page Header add-on: https://docs.generatepress.com/article/page-header-overview/
Let me know this is what you are looking for.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 29, 2017 at 8:44 am #298964Georgios
Thanks Leo:)
Yes that is a solution but i need this to be done with BB and to be editable through BB
If i do it using GPP page header then i cannot edit it with BB and i want specific styles and elements in the page header by using BeaverBuilder
So i wonder if there is a known workaround or BeaverBuilder addon? to do that?It isnt GPP issue i guess but any solution to that will be appreciated
thank you very muchMarch 29, 2017 at 9:04 am #298974Leo
StaffCustomer SupportDoes BB give you a shortcode for those page headers you created?
If so you should be able to use GP hooks with conditional statement for each page.
Let me know if you need more info π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 29, 2017 at 9:22 am #298986Georgios
Hi
i managed to do that exactly like i want building anykind of header for any page using the BB Beaver Themer (its beta yet)
worked fineThank you Leo:)
March 29, 2017 at 9:55 am #299003Georgios
Leo
i wonder about this you wrote : GP hooks with conditional statement for each page.
How can i use hooks for specific page ? i thought that hooks set global action
thanksMarch 29, 2017 at 3:30 pm #299160Leo
StaffCustomer SupportYou would do something like this:
<?php if ( is_page( 'my-page-slug' ) ) { ?> Page "my-page-slug" specific content <?php } ?>
More info on conditional tags here: https://codex.wordpress.org/Conditional_Tags
Let me know if you need more info π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 29, 2017 at 11:00 pm #299260Georgios
Thank you very much Leo. thats very usefull
π
GeorgiosMarch 30, 2017 at 6:59 am #299392Leo
StaffCustomer SupportYou’re welcome π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 7, 2017 at 6:13 am #302940Georgios
Leo hello
i am trying to use that code for different header in different pages with Elementor but i cant get it to work
can you please write me the code lines to place in hooks ?for example my header page is : header1
many thanks
GeorgiosApril 7, 2017 at 7:40 am #302986Leo
StaffCustomer SupportYou could try adding the short code into the Page Header metabox first: https://docs.generatepress.com/article/page-header-content/
If that doesn’t work, then the code for hooks should be something like this:
<?php if ( is_page( 'PAGE-SLUG' ) ) { ?> Shortcode here <?php } ?>
Obviously PAGE-SLUG needs to be replaced by your actual page slug.
Let me know if this makes sense.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 7, 2017 at 8:44 am #303002Georgios
Thank you , the 1st way works but now i lose main menu behind the header
i tried with options and transparency but no luck
this is the page : https://gegeor.net/gr/sample-page/
i can see my menu loading behind custom headerany ideas to solve that?
thank you very much:)April 7, 2017 at 9:21 am #303008Leo
StaffCustomer SupportAre you wanting to merge? If so this should help:
https://docs.generatepress.com/article/merging-header-navigation-content/Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 7, 2017 at 10:48 am #303044Georgios
yes! you are correct again! Thank you very much!
April 7, 2017 at 1:34 pm #303113Leo
StaffCustomer SupportYou’re very welcome π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.