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.

Editing specific categories/forums

3 posters

Go down

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?
Anzo
Anzo
Forumember

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

http://www.duelacademy.net/forum

Back to top Go down

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?
An
An
Forumember

Posts : 44
Reputation : 24
Language : English

https://help.forumotion.com

Back to top Go down

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
YoshiGM
YoshiGM
Active Poster

Male Posts : 1523
Reputation : 145
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum