zencoder / html5-boilerplate-for-wordpress

The HTML5 Boilerplate adapted into a WordPress template, including Bruce Lawson's HTML5 blog markup.
632 stars 130 forks source link

Wrong location for stylesheets called in header.php? #6

Open viktorphoenix opened 13 years ago

viktorphoenix commented 13 years ago

After making a few changes to the stylesheet and noticing they weren't being applied, I saw that the stylesheet being called in the header wasn't the one that Wordpress is using.

<?php versioned_stylesheet($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/css/style.css") ?>

<?php versioned_stylesheet($GLOBALS["TEMPLATE_RELATIVE_URL"]."html5-boilerplate/css/handheld.css", 'media="handheld"') ?>

Should be:

<?php versioned_stylesheet($GLOBALS["TEMPLATE_RELATIVE_URL"]."style.css") ?>

<?php versioned_stylesheet($GLOBALS["TEMPLATE_RELATIVE_URL"]."handheld.css", 'media="handheld"') ?>

Jaktlund commented 13 years ago

Solution:

Move the files in the html5-boilerplate folder into a subfolder and it will find the files.

AndyHendy commented 13 years ago

1) Create a new folder on the same directory as "html5-boilerplate" 2) Copy files in "html5-boilerplate" into the new folder 3) Delete the "html5-boilerplate" folder 4) Rename the new folder "html5-boilerplate"

That solved it for me.

tjkelly commented 13 years ago

This problem occurs because of a conflict with the /theme-name-here/html5-boilerplate/.htaccess file.

The readme.markdown documentation tells us to paste the html5-boilerplate .htaccess content into the root-level .htaccess file. That's where it belongs.

What the docs don't say is that keeping a full copy of the .htaccess file inside the /theme-name-here/html5-boilerplate/ will cause access conflicts for files inside that directory.

Move, delete, rename, or empty that /theme-name-here/html5-boilerplate/.htaccess file and your problems should disappear.