View Full Version : How can I create a class for each category
darkboy245
11-04-2020, 08:27 PM
I'd like to modify each category with CSS but in vBulletin 5 I can only do that with forums and not categories.
How can I make a unique class for each individual category?
lets say Category 1 is #Cat1, category 2 is #Cat2, etc.
The purpose of this is so I can create a grid-view for categories.
Thanks
yilmaz
11-04-2020, 11:23 PM
Have I got it right?
<tr class="forum-item sub new" id="forum173" data-channel-id="173" data-lastcontent="1599453750" data-readtime="0">
tr#forum173 {
background: black;
}
Screenshot
https://vborg.vbsupport.ru/attachment.php?attachmentid=157915&stc=1&d=1604539568
darkboy245
11-05-2020, 12:34 AM
Have I got it right?
<tr class="forum-item sub new" id="forum173" data-channel-id="173" data-lastcontent="1599453750" data-readtime="0">
tr#forum173 {
background: black;
}
Screenshot
https://vborg.vbsupport.ru/attachment.php?attachmentid=157915&stc=1&d=1604539568
This is right but for individual forums, I want to be able to edit a whole category container
https://image.prntscr.com/image/y2R5Q94_QB2RfaOCgQKVPQ.png
so if "Test Category" id was 20, the class would be #category20 or something like that, just like forums.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.