javfuller
Forum Replies Created
-
I don’t see the js file in your current theme. Make sure that it is there, and make sure that you enqueue it for the admin side of the site using the admin_enqueue_scripts hook.
function fos_enqueue_style() {
wp_enqueue_script( ‘lib-underscore’, get_stylesheet_directory_uri().’/js/underscore-min.js’);
}/* call the enqueueing function for the admin end of the site */
add_action( ‘admin_enqueue_scripts’, ‘ fos_enqueue_style’ );I’m getting a 404 when trying to get to the js file. Make sure it’s actually there and readable. Check your file permissions and paths.
I also get a 403 when I to go to https://www.myweb.sk.
If you want to create temporary credentials, send them through my contact page: https://www.fuller-online.com/contact-us
Yoast is just a symptom. The problem can show itself in any number of other ways.
But to to answer your question, I added the underscore.js to my theme and enqueued it from the function.php.
Since your problem continues, I would double check the error on your page. The error I was getting was that _ was undefined. Check Firebug or Web Inspector in other browsers for javascript errors.
What errors are you getting? Do you have a link we can look at?
1.10 code relies on a library that is missing. On my site, it broke the Yoast SEO plugin. I had to install the underscore-min.js file from underscorejs.org.
My issue was specific to the number field.
Forum: Plugins
In reply to: [Titan Framework] Underscores.js error in CustomizerI had to install the underscorejs-min.js to make my site work again. (underscorejs.org)
Seems the 1.10 code for number fields requires it or something similar. I posted a topic about it if you want more details. Not sure if this is the problem you’re having or not.