Announcement

Collapse
No announcement yet.

Conditional to check if home page, show different header?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Conditional to check if home page, show different header?

    I want to show a different header for the home page versus all interior pages, and am wondering what conditional I should write to check for that, but also, how to create and reference a different header for the homepage.

    Any ideas?

  • #2
    Originally posted by mkernel View Post
    I want to show a different header for the home page versus all interior pages, and am wondering what conditional I should write to check for that, but also, how to create and reference a different header for the homepage.

    Any ideas?
    Assuming by "Homepage" you mean forumhome, the vBulletin index.php file...
    Code:
    <if condition="THIS_SCRIPT == 'index'">
    {banner for index here}
    <else />
    {banner for all other pages here}
    </if>
    That should do it.
    MARK.B | vBULLETIN SUPPORT

    TalkNewsUK - My vBulletin 5.5.6 Demo
    AdminAmmo - My Cloud Demo

    Comment


    • #3
      Thanks for the reply, Mark -

      Works perfectly! Thanks! I'm actually running vBadvanced as the home page, so I just changed 'index' to 'adv_index' and it's working perfectly.

      Thanks for the help.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X