Correct way to insert CSS in vBulletin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wii
    Senior Member
    • Sep 2000
    • 1036
    • 3.8.x

    Correct way to insert CSS in vBulletin

    I have a CSS based website which I´m including a vBulletin forum. I inserted the CSS of the website to the header of the forum, it seems to work, but it does give CSS errors using the validator. Can I include my website CSS into vBulletin CSS, if yes, where. And where do I include the XHTML tags from my site then?

    Thanks
  • Colin F
    Senior Member
    • May 2004
    • 17689

    #2
    You should be able to add your CSS to the Additional CSS Definitions box in your Style Manager.
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment

    • wii
      Senior Member
      • Sep 2000
      • 1036
      • 3.8.x

      #3
      Of course, I will try that.

      Comment

      • wii
        Senior Member
        • Sep 2000
        • 1036
        • 3.8.x

        #4
        Hmm, it doesn´t work as I hoped.

        Why can´t I insert the link to the CSS here?

        <!-- CSS Stylesheet -->
        <link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style-83d8883c-00001.css" id="vbulletin_css" />
        <!-- / CSS Stylesheet --

        I´ve tried to put my site CSS in between, but it doesn´t come up in the source code. What am I missing here?

        Thanks

        Comment

        • Colin F
          Senior Member
          • May 2004
          • 17689

          #5
          Be aware that the filename of the CSS file changes each time you edit something in the style.
          Best Regards
          Colin Frei

          Please don't contact me per PM.

          Comment

          • wii
            Senior Member
            • Sep 2000
            • 1036
            • 3.8.x

            #6
            Oh, I don´t want to change that one - just do this:

            <!-- CSS Stylesheet -->
            <link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style-83d8883c-00001.css" id="vbulletin_css" />
            <link rel="stylesheet" type="text/css" href="mysite.css"/>

            <!-- / CSS Stylesheet --

            Comment

            • Colin F
              Senior Member
              • May 2004
              • 17689

              #7
              You should be able to include that in your headinclude template.
              Best Regards
              Colin Frei

              Please don't contact me per PM.

              Comment

              • wii
                Senior Member
                • Sep 2000
                • 1036
                • 3.8.x

                #8
                Got it ! Thanks.

                I just pasted in after the $style[css] tag, otherwise it won´t work.

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...