Home Forums Weaver Xtreme Theme Is there a way to limit the header html area so it only displays on the front page?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18267
    osarusan
    Participant
    Is there a way to limit the header html area so it only displays on the front page?

    I noticed that you can only put html in the header html area, not php, so you can’t use any of the standard wordpress tricks to only show text if it is a certain post or page.

    I am trying to make it so that my custom header html only shows when the page is the frontpage.
    Thanks!
    #24573
    scrambler
    Moderator
    Yes just place the content in a show_if shortcode .
    Check the syntax in the Add-ons page. You will need to check what is the ID# of the page and it will look something like
    [show_if post_id=xxx]your content[/show_if]
    #24574
    osarusan
    Participant

    Thanks, that worked!

    (For anyone else reading this, make sure you use post_id not post-id)
    #24575
    scrambler
    Moderator

    oops, corrected the typo.

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