KnockoutJS won't run on my WordPress installation
-
I have this included in the
<head>
of the header.php file:
<script src="<?php echo get_stylesheet_directory_uri(); ?>/assets/js/knockout-3.2.0.js"></script><?php //3.2.0 ?>
and I also did CDN
https://cdnjs.cloudflare.com/ajax/libs/knockout/3.1.0/knockout-min.js
to load the KnockoutJS Library
But for some reason knockoutJS is still not working in WordPress.
I know it’s not because of scripts not loading properly since:
1.) It’s a default theme, 2012. Should have no problems loading any script.
2.) Bootstrap is working, so I know it’s JS is working.
3.) I tried a simple hello world JavaScript and it works.Is there some issue with KnockoutJS library specifically that WordPress will not load it?
- The topic ‘KnockoutJS won't run on my WordPress installation’ is closed to new replies.