Home » Forum
NoNumber!

Joomla! Extensions •
Web Development •
Web Design •

I try to respond within 24 hours (excluding weekends). If I haven't responded by then, feel free to post a reminder or bug me via email.
Welcome, Guest
Please Login or Register.    Lost Password?

Style sheet link not always loading
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Style sheet link not always loading
#7199
Style sheet link not always loading 5 Months, 2 Weeks ago  
I have templates that each use a unique stylesheet for css. At the beginning of each template is a link tag:

<link rel="stylesheet" type="text/css" href="templates/resumes/simplicity/black/css/simplicityblack.css" />


Everything works fine in Firefox and Safari, but in IE8 the stylesheet link doesn't always load. It is very strange. Half the time when I load a template, the stylesheet link is there at the top, and half the time it is not.

Any ideas what might be happening here?

Thanks,
Jon
jmelton98
Posts: 8
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7202
Re: Style sheet link not always loading 5 Months, 2 Weeks ago  
Your editor might not like you putting in tags and strips them.
You can also fix this with Sourcerer to place the stylesheet in the header (where it should be):
www.nonumber.nl/forum/14-sourcerer/5175-...ead-of-the-html-page
Peter van Westen
Admin
Posts: 4280
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! NºNumber!NºNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7204
Re:Style sheet link not always loading 5 Months, 2 Weeks ago  
Its strange that it only happens with IE8.

Will the Sourcerer fix work in the templates? Do I put the Sourcerer code at the top of the template?
jmelton98
Posts: 8
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7208
Re:Style sheet link not always loading 5 Months, 2 Weeks ago  
You can put the Sourcerer code anywhere you want in the template.
But I am wondering if putting separate stylesheets per template is the best/wisest solution. Is it to be able to style the text/elements within the template (article) differently?
Peter van Westen
Admin
Posts: 4280
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! NºNumber!NºNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7216
Re:Style sheet link not always loading 5 Months, 2 Weeks ago  
I want to offer resume templates for my members. Each template has a unique stylesheet so that when Content Templater loads the resume template, it is stylized in the editor and the user and customize it with their information. The only way I have be able to get the code in the editor to inherit the styles from the stylesheet is to actually link it directly in the resume template that gets loaded. I don't want to go to in-line styling, but I may have to.

Any Ideas?
jmelton98
Posts: 8
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7218
Re:Style sheet link not always loading 5 Months, 2 Weeks ago  
What you can do is put all the styling you need in your main template stylesheet. And control the styling via classnames.

For instance, for Template A, just surround the entire template with <div class="template_a">...</div>.
And Template B with <div class="template_b">...</div>.

Then in your templates css you can do stuff like:

div.template_a a {
   color: red;
}
div.template_b a {
   color: green;
}
Then the links in template A will be red and in template B will be green...
Peter van Westen
Admin
Posts: 4280
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! NºNumber!NºNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
Go to topPage: 1
Joomla Open Source Training