M
M
Maxim2017-07-26 17:13:28
WordPress
Maxim, 2017-07-26 17:13:28

Gallery not working in self-written theme?

Hello. The gallery does not work in a self-written theme, both built-in and the plugin (Responsive Lightbox). In a standard theme or any other, it displays all the rules. Based on the Underscores theme. The Woocommerce plugin is also installed. I already saw a similar question here - <?php wp_head() ?> is in place :)
Who knows what could be the trouble, please help...

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Maxim, 2017-07-26
@Niiix

In general, I found the reason:

wp_deregister_script('jquery');
  wp_register_script('jquery', get_template_directory_uri() . '/libs/jquery-3.2.1.min.js');
  wp_enqueue_script('jquery');

I wanted to add a fresh library (it was originally 1.4.1), after which the plugin stopped working :)
Thank you all for your time! I'll definitely check out Storefront!

W
WordPress WooCommerce, 2017-07-26
@maxxannik

Underscores are best practices under WP.
If we are talking about Woo, then the analogue is Storefront.
It must be taken as a basis. Or if you really want adventure, then you can leave _s but always peep into the source code of Storefront with one eye.

I
imdeveloper, 2017-07-26
@link_web

100% wp_footer() missing from footer.php

S
struggler, 2020-05-08
@struggler

Add - jQuery Migrate and you will be happy. I had a similar problem, downloaded this plugin and added it to functions.php.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question