Announcement

Collapse
No announcement yet.

One skin, several CSSs. How?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • One skin, several CSSs. How?

    Hi!
    In many CSS based sites I've made before, I've implemented a style selector to allow users to load a different CSS file and thus change the site's "theme".

    In vB, and I must say I'm pretty new to it, it seems stupid to duplicate a skin just to have a different CSS applied to it.

    Is there a way to have one skin set and several user selectable CSS files? How?

    Thanks! =)
    Ricardo

  • #2
    Originally posted by rlamego
    Hi!
    In many CSS based sites I've made before, I've implemented a style selector to allow users to load a different CSS file and thus change the site's "theme".

    In vB, and I must say I'm pretty new to it, it seems stupid to duplicate a skin just to have a different CSS applied to it.

    Is there a way to have one skin set and several user selectable CSS files? How?

    Thanks! =)
    Ricardo
    in vbulletin there is a style selector
    and a template (=html) selector
    use it

    admincp
    styles and templates
    styles up or download
    and follow the instructions

    so you could edit templates or /andcss for so many skins you would like to have


    frage

    Comment


    • #3
      Frage, thanks but you missed the point.

      Here's a better example:
      - You have just installed vB and it only has the Default Style;
      - You want to have a second style on your site, exactly the same as the Default Style but with bigger font sizes;
      - Since this implicates no template changes, you could just make a new CSS file to use with the Default Style's templates;
      - You want to use the Quick Style Chooser (like the one on this page's bottom left corner) so your members can choose this style.

      How can I do this?

      Comment


      • #4
        Add a new style as a child and define larger font sizes.

        Comment


        • #5
          Originally posted by Zachery
          Add a new style as a child and define larger font sizes.
          Could also change colors

          Comment


          • #6
            Thanks Zachery! Child styles did the trick just fine =)

            Getox: sure! But for "understandability" (wow, did I just invented a new word?) sake I limited my example to a simpler situation.

            Comment

            Loading...
            Working...
            X