1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Can I change header background in the all sub-forums?

Discussion in 'Styling and Customization Questions' started by Befy, Aug 7, 2013.

  1. Befy

    Befy Member

    Hi all,
    I wonder that;
    can I change header's background image for all sub-forums.
    For example,
    main page's header bg is default and I go to the sub-forum called Battlefield 3 I want to put header a bf3 image,I go to sub-forum called Call Of Duty I want to put there a cod image.Can I do that?

    A site for example;
    http://www.ksitetv.com/forums/index.php
    http://www.ksitetv.com/forums/forumdisplay.php?965-Agents-Of-S-H-I-E-L-D
    http://www.ksitetv.com/forums/forumdisplay.php?279-Doctor-Who-amp-Torchwood-The-Whoniverse


    I know this forum is vBulletin,that's why I ask.I wonder that is it possible or not?
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Yes, that should be doable either by having multiple styles or CSS. However, I do not know the css off by hand.
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

    Add this to EXTRA.css:
    Code:
    #header {
    background: url("path/to/image.png");
    }
    
    .node32 #header {
    background: url("path/to/image.png");
    }
    
    .node47 #header {
    background: url("path/to/image.png");
    }
    
    Change the node ID accordingly and add a new selector for each node and image combination.
     
    Jeremy likes this.
  4. Befy

    Befy Member

    For example I want to change Styling and Customization Questions's header bg,
    should I use .node47 ?
     
  5. Jeremy

    Jeremy XenForo Moderator Staff Member

    Yes.
     
  6. Befy

    Befy Member

    It didn't work for Baisik theme?
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    You will need to check with the style designer.
     
  8. Befy

    Befy Member

    It's not working for Baisik theme still.



    edit:
    http://puu.sh/4gmAk.jpg

    I changed the header background but I still can't change node's header bg :(
     
  9. Jeremy

    Jeremy XenForo Moderator Staff Member

    You should ask the style author in the release thread, they are best suited to help you further.
     
  10. Befy

    Befy Member

    Ok I've done it,now all nodes have different header bg but I wonder that can I do different body BGs for each node?

    edit: .nodex {background} is makes it
     
  11. Jeremy

    Jeremy XenForo Moderator Staff Member

Share This Page