[Resolved] Different Header for pages

Home Forums Support [Resolved] Different Header for pages

Home Forums Support Different Header for pages

  • This topic has 14 replies, 2 voices, and was last updated 7 years ago by Leo.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #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

    #298958
    Leo
    Staff
    Customer Support

    Hi 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.

    #298964
    Georgios

    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 much

    #298974
    Leo
    Staff
    Customer Support

    Does 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 πŸ™‚

    #298986
    Georgios

    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 fine

    Thank you Leo:)

    #299003
    Georgios

    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
    thanks

    #299160
    Leo
    Staff
    Customer Support

    You 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 πŸ™‚

    #299260
    Georgios

    Thank you very much Leo. thats very usefull

    πŸ™‚
    Georgios

    #299392
    Leo
    Staff
    Customer Support

    You’re welcome πŸ™‚

    #302940
    Georgios

    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
    Georgios

    #302986
    Leo
    Staff
    Customer Support

    You 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.

    #303002
    Georgios

    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 header

    any ideas to solve that?
    thank you very much:)

    #303008
    Leo
    Staff
    Customer Support

    Are you wanting to merge? If so this should help:
    https://docs.generatepress.com/article/merging-header-navigation-content/

    #303044
    Georgios

    yes! you are correct again! Thank you very much!

    #303113
    Leo
    Staff
    Customer Support

    You’re very welcome πŸ™‚

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.