Home › Forums › WoodMart support forum › Separate Homepage for mobile › Reply To: Separate Homepage for mobile
September 10, 2019 at 6:43 am
#142885
Artem Temos
Keymaster
Try to add the following PHP code snippet to the child theme functions.php file
function woodmart_move_device_js(){
wp_deregister_script( 'woodmart-device' );
wp_dequeue_script( 'woodmart-device' );
wp_enqueue_script( 'woodmart-device', woodmart_get_script_url( 'device' ), array( 'jquery' ), woodmart_get_theme_info( 'Version' ), false );
}
add_action( 'wp_enqueue_scripts', 'woodmart_move_device_js', 10001 );