vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=264)
-   -   Forum home page alternating colors (https://vborg.vbsupport.ru/showthread.php?t=327631)

dshhcad19 11-04-2019 05:12 PM

Forum home page alternating colors
 
I searched and looked at the videos and couldn't find the answer...
My forum home page has categories and under each category is two sub forums showing on the main page. I would like to:
a: Have the category name centered.
b: Have each category with the subcategory a different color.

Where do I go to change this?

napy8gen 11-05-2019 06:57 AM

1. The category name cannot center easily because it is inside a colspan column. It can be centered using a CSS overwrites.

paste this inside style manager> style name> edit templates> CSS Templates> css_additional.css
HTML Code:

.forum-list-container .category-header .category{
    width: 100%;
    text-align: center;
    display: block;
}


2. Category background color can be different using CSS overwrites but there is no stylevars yet for this.

you have to find the forum category id whether from browser inspect or from forum manager.
for example

HTML Code:

.forum-list-container .category-header#forum18{background:#000;}
.forum-list-container .category-header#forum18 .category{color:#fff}

This will make the category header black, the category text white.
paste this inside style manager> style name> edit templates> CSS Templates> css_additional.css

dshhcad19 11-05-2019 03:35 PM

THank you!


All times are GMT. The time now is 03:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00902 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete