Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have the following script and enque function, and the site properly renders it in the html head, however when I click the link to the css and javascript files the i get a url not found, however the url is correct. I changed the permissions to 777 for all the folders so I am not sure why it cant see it. You can view the error site here and the error here.

// loading modernizr and jquery, and reply script
function bones_scripts_and_styles() {
  if (!is_admin()) {

    // modernizr (without media query polyfill)
    wp_register_script( 'bones-modernizr', get_stylesheet_directory_uri() . '/library/js/libs/modernizr.custom.min.js', array(), '2.5.3', false );

    // register main stylesheet
    wp_register_style( 'bones-stylesheet', get_stylesheet_directory_uri() . '/library/css/style.css', array(), '', 'all' );

    // ie-only style sheet
    wp_register_style( 'bones-ie-only', get_stylesheet_directory_uri() . '/library/css/ie.css', array(), '' );

    // comment reply script for threaded comments
    if ( is_singular() AND comments_open() AND (get_option('thread_comments') == 1)) {
      wp_enqueue_script( 'comment-reply' );
    }

    //adding scripts file in the footer
    wp_register_script( 'bones-js', get_stylesheet_directory_uri() . '/library/js/scripts.js', array( 'jquery' ), '', true );

    // enqueue styles and scripts
    wp_enqueue_script( 'bones-modernizr' );
    wp_enqueue_style( 'bones-stylesheet' );
    wp_enqueue_style('bones-ie-only');
    /*
    I recommend using a plugin to call jQuery
    using the google cdn. That way it stays cached
    and your site will load faster.
    */
    wp_enqueue_script( 'jquery' );
    wp_enqueue_script( 'bones-js' );

  }
}
share|improve this question
    
Give your theme a more friendly url, preferably one without dots or hash signs. –  Aliyah Jan 18 '13 at 4:00
add comment

2 Answers

up vote 2 down vote accepted

You have called your theme mrskitson.caVersion#3. Do you know what a hash symbol (#) does in a URL? So, browsers are trying to load the script here:

http://update.mrskitson.ca/wp-content/themes/mrskitson.caVersion

And then jump down to an element with ID matching everything after the #.

Change the name of the theme folder!

share|improve this answer
    
oh of course, thankyou so much –  Anders Kitson Jan 18 '13 at 4:04
add comment

Your theme directory contains some unusual characters. Theme directory names should only consist of lowercase letters, dashes and numbers.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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