Hello,
I have a template for a page at http://memorializeme.flywheelsites.com/memorials/
This pulls information from a secure webapp to populate the page. In addition to the template-memorials.php page, the script.php page has been modified to call the two .js files that populate the page.
if(is_page_template ('template-memorials.php')) {
wp_register_script( 'x-custom-script', X_TEMPLATE_URL . '/framework/js/dist/site/customscript.js', array( 'jquery' ), X_VERSION, true );
wp_enqueue_script( 'x-custom-script' );
wp_register_script( 'x-customscroll-script', X_TEMPLATE_URL . '/framework/js/dist/site/jquery.mCustomScrollbar.js', array( 'jquery' ), X_VERSION, true );
wp_enqueue_script( 'x-customscroll-script' );
}
They are located:
/framework/functions/global/enqueue/scripts.php
/framework/js/dist/site/customscript.js
/framework/js/dist/site/jquery.mCustomScrollbar.js
I put those files in the same directory structure in the child theme but it doesn’t work and the memorials template page is blank.
Is it possible to have those files work in a child theme or do I need to load the .js files a different way?
Thanks for your help,
Don