style sheet for sub-theme not being applied
| Project: | Zen |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active (needs more info) |
Jump to:
Hi all,
I created a sub-theme using the Zen theme's starter kit. About every 40 or so clicks navigating around my site where my style sheet comes up properly - all of a sudden it isn't called and none of my style sheet's attributes come up at all. I get all the content on the page as usual, just no styles applied except the Drupal core module style sheets. I'm trying to figure out a way for certain that my custom css file gets called every time. I've also tried putting <link type="text/css" rel="stylesheet" media="all" href="http://www.example.com/sites/all/themes/zen/custom_theme/custom_theme.css" /> and a
<style type="text/css"> @import(http://www.example.com/sites/all/themes/zen/custom_theme/custom_theme.cs...) </style> into a block that shows up on every page as a sort of hacked work-around, but even then, I still have issues.
I did a view source of my site and can see that it should be calling the appropriate style sheet, but the custom style sheet is not being applied - only layout.css, html-elements.css, and all the core Drupal css files.
<code>
<link type="text/css" rel="stylesheet" media="all" href="/modules/book/book.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/poll/poll.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system-menus.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/user/user.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/cck/content.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/cck/fieldgroup.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/extlink/extlink.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/friend/friend.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/logintoboggan/logintoboggan.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/nice_menus/nice_menus.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/nice_menus/custom_nice_menus.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/forum/forum.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/comment/comment.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/zen/zen/html-elements.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/zen/zen/tabs.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/zen/custom_theme/layout.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/zen/custom_theme/custom_theme.css?J" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/zen/zen/block-editing.css?J" />The style sheet disappears very often when using FireFox on a Mac computer, but I have seen it happen occasionally on IE for Windows too. It hasn't been a problem on Safari on a Mac computer.
I'm using Drupal 6 and a sub-theme I created from Zen theme's starter kit. Has anyone else had this issue before? Any possible solutions come to mind?
Thanks,
Andrew G

#1
sorry about the syntax there. i must have forgotten a
<code>tag.#2
#3
Still having issues?