Announcement

Collapse
No announcement yet.

Help with Header

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

  • [vB4] Help with Header

    Hello,
    I'm trying to have a different header for the blogs than the forum currently has.

    What I've done so far:
    • Created a new stylevars header_background2 with the new header background image.
    • Added a class .above_body2
    • Added the following condition:
      • Replaced:
        Code:
        <div class="above_body">
        With:
        Code:
        <if condition="THIS_SCRIPT == 'blog'"><div class="above_body2"><else /><div class="above_body"></if>

    Is this not the script that needs to be called? ('blog')
    When I go to save this it says the condition is malformed. Am I missing something? Should I get some more sleep?

    When I switch the div's it does show the other header I want displayed.

    Can someone lend a helping hand?

  • #2
    Got it working. I'm using the following:

    Code:
    <vb:if condition="VB_PRODUCT == 'vbblog'"><div  class="above_body2"><vb:else /><div  class="above_body"></vb:if>
    The one I was using originally needed "vb:" on all of the "if" and "else". I don't know if it would have worked using "THIS_SCRIPT", but this one works.

    Comment

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