Editing specific categories/forums Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
3 posters

    Editing specific categories/forums

    Anzo
    Anzo
    Forumember


    Posts : 365
    Reputation : 8
    Language : English/Arabic
    Location : Baghdad - Iraq

    Editing specific categories/forums Empty Editing specific categories/forums

    Post by Anzo July 15th 2016, 8:26 pm

    Hi Very Happy

    I was wondering if it's possible to edit specific forums on the home page index. Like, if i want a specific forum to have a different background color or a different width compared to the others.

    Is it possible?
    An
    An
    Forumember


    Posts : 44
    Reputation : 24
    Language : English

    Editing specific categories/forums Empty Re: Editing specific categories/forums

    Post by An July 16th 2016, 5:47 pm

    Yes, it's possible!

    Depending on your forum version you can use either an identifier or the nth-child css selector. What version forum is your question for?
    YoshiGM
    YoshiGM
    Active Poster


    Male Posts : 1509
    Reputation : 144
    Language : Spanish & English
    Location : Mexico

    Editing specific categories/forums Empty Re: Editing specific categories/forums

    Post by YoshiGM July 20th 2016, 6:11 pm

    Hello,
    Use this Javascript:

    Code:
    $(function() { $('li.header:eq(0)').css('background-color','orange'); });

    The eq(0), it's the position of the category. In this case your first category that you have. Just add a consecutive number.


    eq(1) -second forum
    eq(2) - third forum
    eq(3) - fourth forum
    etc