View Full Version : simple template question
is there a way to have the "dark" site style be the default for the "simple" template. so, when you visit the photoblog the default is dark rather than light for the site style? i assume there would be a tweak to do this. maybe to the index page...
codepoit
01-29-2007, 02:24 PM
Yes. In the index page (and all of your foo_template.html files for that matter) change the lines which indicate the style sheet. One of them will indicate the default style sheet and one the alternate...just switch them up and you should be good to go.
Actually, I just switched places for lines 14 and 15 (see below) in the image_template file and it worked. Now, dark is listed first and light is listed second in the code for the image_template file. Does this seem good to people? It works...
<link rel="alternate stylesheet" type="text/css" href="templates/simple/styles/dark.css" title="dark" />
<link rel="stylesheet" type="text/css" href="templates/simple/styles/light.css" title="light" />
codepoit
01-29-2007, 02:41 PM
That's correct. The reason I said to switch it in all of the x_template.html files is because those same lines of code exist on all of your pages (about, browse, comment, etc.). Without a link to your site, it's hard to say if all of your pages are now using the dark css as the default...
That's correct. The reason I said to switch it in all of the x_template.html files is because those same lines of code exist on all of your pages (about, browse, comment, etc.). Without a link to your site, it's hard to say if all of your pages are now using the dark css as the default...
you're right. my switch in fact, did not work. it was just mozilla remembering what choice i had made for the style. i will try and figure out your way. thanks by the way!
codepoit
01-29-2007, 03:00 PM
My way is the same as your way...in your code where you have the line for alternate style sheet: set that to light. for the other style sheet line set that to dark (this is the default style sheet to be used).
you're right. my switch in fact, did not work. it was just mozilla remembering what choice i had made for the style. i will try and figure out your way. thanks by the way!
not having any luck...not sure what needs to be changed specifically. my original switch did not do anything actually. i have perused the code but not having much luck. i am pretty useless with deciphering code...i am sure someone must have had this need to set dark as the default...i think...
codepoit
01-29-2007, 03:31 PM
Again, without a link to your site, I can't get too specific, but...if you take this code:
<link rel="alternate stylesheet" type="text/css" href="templates/simple/styles/dark.css" title="dark" />
<link rel="stylesheet" type="text/css" href="templates/simple/styles/light.css" title="light" />
and change it this:
<link rel="alternate stylesheet" type="text/css" href="templates/simple/styles/light.css" title="light" />
<link rel="stylesheet" type="text/css" href="templates/simple/styles/dark.css" title="dark" />
you will accomplish what you are trying to do. Notice I changed where light and dark exist, so that light is listed as the alternate, and dark is listed as the stylesheet...
Again, without a link to your site, I can't get too specific, but...if you take this code:
<link rel="alternate stylesheet" type="text/css" href="templates/simple/styles/dark.css" title="dark" />
<link rel="stylesheet" type="text/css" href="templates/simple/styles/light.css" title="light" />
and change it this:
<link rel="alternate stylesheet" type="text/css" href="templates/simple/styles/light.css" title="light" />
<link rel="stylesheet" type="text/css" href="templates/simple/styles/dark.css" title="dark" />
you will accomplish what you are trying to do. Notice I changed where light and dark exist, so that light is listed as the alternate, and dark is listed as the stylesheet...
I will try. Thanks. My site is at: www.talz.ca
I made the change to:
about_template
browse_template
image_template
comment_template
But still no luck. Do I need to change something in the index file?
Hmm...
austriaka
01-30-2007, 06:45 AM
The styleswitcher script sets a cookie with your favorite style.
When I look at your site talz.ca it shows up in dark style. The source code of your pages looks correct. Just for "logical look" I would put the "stylesheet" line first and the "alternate stylesheet" as second. But that should not make any difference in working with modern browsers.
Delete your Cookies (in Firefox you can do that easily just for your site), close all browser windows and start again.
KArin
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.