Close

Account

Documentation

Forum

Menu

Reply To: Child Theme and main.js files

Post count: 52
Eugenio
October 26, 2014 at 7:30 am #5693

Sorry Rai,
I forgot this is my child function.php :

<?php
add_action( ‘wp_enqueue_scripts’, ‘mainjs_override’ );
function mainjs_override()
{
wp_dequeue_script( ‘jkreativ_main’ );
wp_enqueue_script( ‘jkreativ_main’, get_stylesheet_directory_uri() . ‘/public/js/internalmin/main.js’, array( ‘jquery’ ) );
}

It seems to work, but if you have any precious suggestion it’s really appreaciated.

Thanks a lot,
Eugenio