Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Different CSS for different sections

CansiliCansili New
edited February 2016 in Vanilla 2.0 - 2.8

Looking at the default theme, it has only one style (style.css) and is loaded in every page.

Will it be possible to create another style and load it for a specific section only, i.e. categories.css for the categories page?

Comments

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    @Cansili

    Certainly, but not exactly like that.

    Generally, changes to CSS go in the custom.css file of your theme.

    You can either create a custom theme: http://vanillawiki.homebrewforums.net/index.php/A_Quick-Start_Guide_to_Creating_Themes

    or use the CSSEdit plugin and add css changes via the dashboard.

    Using a web inspector such as Firebug for Firefox will show you which CSS elements you need to change, or you can work your way through the examples in the link to the Wiki.

  • Options
    R_JR_J Ex-Fanboy Munich Admin

    Look at the body tag and you will see that you can style any page differently based on the bodys class/id.

    Having two different css files doesn't make sense.

Sign In or Register to comment.