Home Forums WoodMart support forum Header Template Tag

Header Template Tag

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #84454

    sarahhellems
    Participant

    Hi, I’m using the header builder and would like to select an alternate template via a template tag in PHP rather than using the dropdown when creating a page. I’m using a custom template for a page and hoping to have a specific header for that particular page. Is that possible?

    #84468

    Artem Temos
    Keymaster

    Hi,

    You can try to edit the file inc/builder/Fontend.php and customize the function get_current_id that returns an ID of the header for the current page.

    Regards

    #85996

    sarahhellems
    Participant

    Hi, thanks for your help. I more need have the ability to choose one of the headers from the header builder to use on some of my php files that aren’t correlated to pages that were physically created (such as an archive page or a search results page). Is there a way to call a header ID from the header builder?

    #86021

    Artem Temos
    Keymaster

    Hi,

    Unfortunately, there is no such predefined function in our theme. It may require additional code customization in inc/builder/Frontend.php file.

    Kind Regards

Viewing 4 posts - 1 through 4 (of 4 total)