Answer the question
In order to leave comments, you need to log in
Why didn't my theme scripts connect to WooCommerce?
Dear community!
I know that there are many WP and WooCommerce experts on Habré. Help! Problem: Clients asked for a very simple website (shop). I designed the page, put it on WordPress, installed WooCommrece, included the styles and scripts of my theme in function.php (in general, everything is "like a book") and here it is: the scripts work as they should on the main page, but when I go to other pages they don't work ( i.e. there is no "top" button, the mobile menu does not work). I can’t understand in which three pines I got lost... Here is the link: https://pamyatnikshostka.com/ (I’m still finalizing the site - that’s why it’s crooked in some places)
Answer the question
In order to leave comments, you need to log in
- There is no "top" button, because it appears when scrolling, there is simply no content on other pages ...
- As for the menu, check the console, everything is written there (you make the slider work where it does not exist ... )
See script.js - 13th line
No, no, you don't need a slider. The mobile menu simply does not work when the screen is reduced. Those. there is a hamburger, but when clicked, the menu does not work
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question