I’m triyng to set up a bootstrap modal in the product page but something is not working properly. I don’t know if it is a problem with the code I used or with the template files. Here is a sample code (the content is not important). Can You tell me if I did something wrong.
Thanks in advance.
1) data-target=”” points to the id of the modal but in your code you have used id different than data-target
2) we use different modal windows in our theme and did not include default bootstrap modal.js. So, you need to include the modal.js file into child theme and enqueue it.