• I am trying to include this javascript. But the URL path has a space in it. If I leave the space then /mytheme child/ becomes /mythemechild/. I tried adding %20 and looked at the source code and it showed %20. Can this be done with a space in the URL path?

    wp_register_script( 'myscript', get_bloginfo('url').'wordpress/wp-content/themes/mytheme%20child/js/myscript.js');
    
    wp_enqueue_script( 'myscript' );

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Including a javacript URL with a space’ is closed to new replies.