Open FMoriella opened 1 year ago
You need just enqueue script to the rest of the pages and exclude them from the specific page for example if ( is_page( array( 'your-page' ) ) ) { // leave empty } else { wp_register_script('locomotive-script', 'https://cdn.jsdelivr.net/npm/locomotive-scroll@3.5.4/dist/locomotive-scroll.min.js', false, '3.5.4', true); wp_enqueue_script('locomotive-script'); }
Is this something that you want to achieve? or?
@Akrasnovskis I have a single page application, how would I disable scripts or locomotive scroll in this case when a condition is true?
Hello everybody, I need to disable scroll locomotives on a specific page, but I can't find a solution. I have a page with filters and when I select one the page it scrolls badly and with a lot of white space. Some solutions?