PDA

View Full Version : External stylesheet


asandhanam
03-14-2008, 09:05 PM
By default vbulletin puts all the stylevars within the <style> tag. Is it possible to externalize it (put them in an external stylesheet).

Lynne
03-14-2008, 10:12 PM
I may be reading your question wrong, but if you are asking about having your stylesheets stored as files, then go to your Admin CP > Style & Language Settings > Store CSS Stylesheets as Files? and set to Yes. However, note this:

If you would like to store the CSS stylesheet for each style as a file, you must ensure that you have a directory called 'vbulletin_css' inside the 'clientscript' folder, and that the web server has permission to write and delete files within that directory.

asandhanam
03-19-2008, 05:52 AM
Thanks for the reply. I couldn't find 'styles & language settings' in admincp.? I have a 'style manager' and 'language manager'. But even in the 'style manager' i couldn't find the setting to save css in external files.
To be more precise, if you view source on stage.lawinfo.com/chattest/, you can see the css within the <style> tags. Those correspond to the css settings in 'main css' under 'style manager'. I was wondering if those could be moved to an external style sheet, but still be editable via the admin panel. For SEO purposes, it would be a good idea to move it to an external style sheet.

SEOvB
03-19-2008, 06:49 AM
under AdminCP -> vBulletin Options -> Styles and Language Settings

Not only good for SEO purposes but will also decrease your page load times :D

asandhanam
03-19-2008, 04:49 PM
It worked !!!Awesome. Thanks for your help!!!

StarScream1
03-28-2008, 03:45 AM
hmm how would i know it its working? i tried changing to css but the folder clientscript/vbulletin_css/ still remains empty with only 1 index.html. please advice.

must i change the permissions to the folder to 777?

SEOvB
03-28-2008, 04:07 AM
make sure the permissions are 777 like you said.

Then after that, go to your forums and from your browsers menu Hit View -> View Source

if you've got a load of CSS at the top, its not working. If you don't have loads of CSS up top its working.

ssandgirls
09-06-2008, 03:46 AM
I just did this also , my pages are loading much faster.... :)