View Full Version : Mysterious CSS issue?
bostonfan
10-08-2006, 08:23 PM
Bummer. Yesterday, I had finally gotten my layout looking pretty close to where I want it so I decided to just try out different selections in the theme editor to see how the different colors looked and I would then make appropriate selections within my modified GreenLeaves2 theme.
Well, it seems that in the midst of selecting different themes, it messed up my layout a bit. And reselecting my GreenLeaves2 in the admin panel doesn't bring back the original colors/layout. In fact, it doesn't matter which theme I select now, it doesn't change from this messed up version I have now.
I did a "view source" on my site and noticed that there is no opening "<" tag on the call to the style.css file...
href="http://www.ultimate-haunted-houses.com/templates/GreenLeaves2/css/style.css" />
But I can't figure out how to resolve it. I see this call in the header.tpl file:
<link rel="stylesheet" type="text/css" href="{$templates}/css/style.css" />
Where is $templates defined? Perhaps if I can locate it I can add the missing opening "<" tag?
redeye
10-08-2006, 09:15 PM
I did a "view source" on my site and noticed that there is no opening "<" tag on the call to the style.css file...
href="http://www.ultimate-haunted-houses.com/templates/GreenLeaves2/css/style.css" />
But I can't figure out how to resolve it. I see this call in the header.tpl file:
The opening tag is visible if you view source on your site - this is what I've just copied.
<link rel="stylesheet" type="text/css" href="http://www.ultimate-haunted-houses.com/templates/GreenLeaves2/css/style.css" />
So the problem must be elsewhere. Have you any backups of the css file?
I see this between The <head></head> tags.
<center>
<TABLE cellSpacing=0 callPadding=0 width=800>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=800>
<table border="0" cellpadding"0" width="100%" height="100%"
<tr width="100%">
<td width="1"
<object width="100" height="300">
<param name="movie" value="Candelabra_left.swf">
<embed name="Candelabra_left" src="templates/GreenLeaves2/flash/Candelabra_left.swf" quality="high" bgcolor="#000000"
width="100" height="300"></embed></object>
</td>
<td width="Width" valign="top" align="left">
Best that I know there shouldn't be html up there.
Also try deleting the "contents" of your tmp folder.
bostonfan
10-08-2006, 10:01 PM
The opening tag is visible if you view source on your site - this is what I've just copied.
<link rel="stylesheet" type="text/css" href="http://www.ultimate-haunted-houses.com/templates/GreenLeaves2/css/style.css" />
Good eye there, Redeye. :-) You're right, it's there...the wordwrapping on my view threw me off.
So the problem must be elsewhere. Have you any backups of the css file?
Yes, will give that a go. Hope I don't have much in the css file that has been modified since the backup. But I suppose it can't get much worse than it is right now.
bostonfan
10-08-2006, 10:12 PM
Best that I know there shouldn't be html up there.
I didn't know about that so perhaps that is the issue, but it did work fine like that until I messed with the theme editor (but maybe one of the other themes didn't like the html up there and that's where it got "stuck").
Also try deleting the "contents" of your tmp folder.
I deleted the contents of the temp folder, but no luck it seems.
Will try replacing the css file with the latest backup and see how it goes.
bostonfan
10-08-2006, 10:29 PM
I replaced my css file with the backup I made a week ago. Fortunately, I only lost some background color mods I had done. So, we're back up to speed! :good:
redeye
10-08-2006, 10:59 PM
Greg's right about that html code in the head tags - shouldn't be there.
bostonfan
10-08-2006, 11:07 PM
Okay, but if it shouldn't be placed there, where should I place it to achieve the same effect?
redeye
10-08-2006, 11:10 PM
Okay, but if it shouldn't be placed there, where should I place it to achieve the same effect?
It's a swf file isn't it?
Where is it supposed to be?
You have one swf file in the top of the page which displays - what's the second one for?
bostonfan
10-10-2006, 04:06 AM
It's a swf file isn't it?
Where is it supposed to be?
You have one swf file in the top of the page which displays - what's the second one for?
The first swf file (between the <head> tags) is for the floating candelabra that appears in the left "margin" (the right margin one is in the footer file).
The second swf file (in the <body> section) is the one that appears at the top of the page.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.