I am importing some css files in another css document like so, however the foundation.css file is getting a 403 for the stylesheet when I visit the location, my ftp says it is there and it all works locally. The site is live here username:anders pass:reading61 I am not sure what is going on.

Theme Name: git.Austin.Kitson.org
Theme URI: http://austin.kitson.org
Description: A Wordpress version of Austin.kitson.org
Author: springmethod
Author URI: http://springmethod.com
Version: 1.0
/*import styles for zurbs foundation*/
@import url("stylesheets/foundation.css");
@import url("stylesheets/app.css");
[if lt IE 9] @import url("stylesheets/ie.css");

here is my functions.php css register and enqueue if that helps

function load_css_styles(){
if (!is_admin()){
wp_register_style('css_main', get_template_directory_uri() . '/style.css');
}// if not admin ends
}// css_styles ends
add_action('wp_enqueue_scripts', 'load_css_styles');
  • 403 is a permissions error, check that the file has proper permissions for public access on your server – Milo Oct 25 '12 at 2:14
  • @Milo wow your the best milo, what is a proper permissions number. I set my wp-content to 777 to test and it all works, but I dont think that is a secure permission I dont know though, previously it was all set to 755, shouldn't that work? – Anders Kitson Oct 25 '12 at 2:21
  • @Milo ok well i changed back to 755 and set it recursively, I guess just foundation.css had a different permission, working great now, could you possible answer the question so I could choose it as the answer. – Anders Kitson Oct 25 '12 at 2:23
  • Files should be 444 or 644 and directories 755. – Joseph Leedy Oct 25 '12 at 2:33

403 Forbidden is a permissions error, check that the file has proper permissions for public access on your server.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.