Wordpress Shamanism jQuery / CSS is connected, but why not working?

Did your plugin on WordPress using a Lightbox ( no other plugins are not working, conflict with the theme ). And here's the thing, the scripts and styles are loaded ( checked in the header all is connected correctly ), the script output images of the post in PHP is working correctly, but this Lightbox which podluzi, his scripts and CSS, though connected, but the dead don't work, it's like so? Why?
P. S. the Theme of the Oyster, the site is made on wordpress gt3 page builder.

lightbox_connect function() {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js');
wp_enqueue_script( 'jquery' );
wp_register_script( 'lightbox_js', '/wp-content/plugins/view_post_imgs/dist/js/lightbox.min.js', array('jquery') );
wp_enqueue_script( 'lightbox_js' );

wp_register_style( 'lightbox_css', '/wp-content/plugins/view_post_imgs/dist/css/lightbox.min.css');
wp_enqueue_style( 'lightbox_css' );
}
add_action( 'wp_enqueue_scripts', 'lightbox_connect' );

add_action('get_fotos');
get_fotos function(){

$gt3_theme_pagebuilder = gt3_get_theme_pagebuilder(get_the_ID());
$fotos_array = $gt3_theme_pagebuilder["post-formats"]["images"];
 foreach ($fotos_array as $genera_array => $foto_id_array) {
 foreach ($foto_id_array as $foto_id){
 echo '
 <a class="example-image-link" href="'.wp_get_attachment_image_url ($foto_id).'" data-lightbox="example-set">
 <img class="example-image" src="'.wp_get_attachment_image_url ($foto_id).'" alt>
</a>
';
}
}

}
July 8th 19 at 16:32
2 answers
July 8th 19 at 16:34
Disable jquery and check
If you disable that so : wp_deregister_script( 'jquery' );
The page will be empty. - jaycee commented on July 8th 19 at 16:37
July 8th 19 at 16:36
the link to the website show.
timworld.info/portfolio/about-the-sea-1 - jaycee commented on July 8th 19 at 16:39
: now that you are not working ? - jaycee commented on July 8th 19 at 16:42
: that everything is the same, there are 3 pictures under the Author text Author text Author text
they are connected to the Lightbox script which is loaded in the header and on click event, the pop up and slider. Although the scripts and CSS are loaded, they don't work - Caesar.Keeli commented on July 8th 19 at 16:45
: I do not understand where the conflict is. - jaycee commented on July 8th 19 at 16:48
: I saw no head and no where else js is not of the standard and where your js is connected ? - jaycee commented on July 8th 19 at 16:51
id='lightbox_css-css' href='timworld.info/wp-content/plugins/view_post_imgs/di...' type='text/css' media='all' /> - Caesar.Keeli commented on July 8th 19 at 16:54
src='timworld.info/wp-content/plugins/view_post_imgs/di...'> - jaycee commented on July 8th 19 at 16:57
: That's my script that I registered the code in the description of the issue. - jaycee commented on July 8th 19 at 17:00
type='text/javascript' src='timworld.info/wp-content/plugins/view_post_imgs/di...'
++
id='lightbox_css-css' href='timworld.info/wp-content/plugins/view_post_imgs/di...' type='text/css' media= - jaycee commented on July 8th 19 at 17:03
I am using scrpit and readable style - jaycee commented on July 8th 19 at 17:06
Thought it was still okay, no, the script is connected after the last jquery version ( which I also tried to educate and activate, change the order of connect and download ) - jaycee commented on July 8th 19 at 17:09
: The order does not matter, where you called the function ? - jaycee commented on July 8th 19 at 17:12
: function gt3_get_theme_pagebuilder(get_the_ID()); in plugin gt3 page builder theme - Sasha.Gorczany commented on July 8th 19 at 17:15

Find more questions by tags jQueryPHPCSSWordPress