MAGEEWP

Themes for WordPress

How to deactivate PrettyPhoto Lightbox  

  RSS

matthieu
(@matthieu)
New Member
Joined:3 years  ago
Posts: 4
22/12/2015 1:32 pm  

Hello,

OneTone is a very nice theme.

I discovered that the PrettyPhoto Lightbox is included in the theme.

May suggest two improvements :
1 - It's a feature, why not mention it in the documentation.
2 - It would be nice to be able to turn it off so that it does not interfere with other lightbox plugins.

Thank you.


ReplyQuote
Arthur Sereno
(@keysyl)
Member Admin
Joined:4 years  ago
Posts: 1519
23/12/2015 2:27 am  

PrettyPhoto Lightbox? How do you find that? Is it in the shortcode?


ReplyQuote
matthieu
(@matthieu)
New Member
Joined:3 years  ago
Posts: 4
23/12/2015 4:05 pm  

Hello Sereno.

I found out because it was interfering with the lightbox plugin I use.
So I checked the theme documentation and found it nowhere. Then I checked the Magee shortcode plugin and then all my other plugins.
It was nowhere to be found.
So I checked the theme code and I found jquery.prettyPhoto.js in wp-content/themes/onetone/plugins.

I was able to deactivate it by making the following modifications :
- file includes/theme-setup.php
-- comment out line 61 : //wp_enqueue_style('prettyPhoto', get_template_directory_uri() .'/css/prettyPhoto.css', false, '3.1.5', false);
-- comment out line 392 : //wp_enqueue_script( 'prettyPhoto', get_template_directory_uri().'/plugins/jquery.prettyPhoto.js', array( 'jquery' ), '3.1.5', true );
- file js/onetone.js
-- comment out line 354 : // $("a[rel^='portfolio-image']").prettyPhoto();
-- comment out line 356 : // $(".gallery .gallery-item a").prettyPhoto({animation_speed:'fast',slideshow:10000, hideflash: true});

Regards.


ReplyQuote
Arthur Sereno
(@keysyl)
Member Admin
Joined:4 years  ago
Posts: 1519
24/12/2015 2:58 am  

I see it, thanks. Portfolio is some people need and turn it off will make newbie confused, any way, thank you for feedback.


ReplyQuote
matthieu
(@matthieu)
New Member
Joined:3 years  ago
Posts: 4
24/12/2015 1:16 pm  

Hello Sereno,

I am not suggesting that it be removed.

I suggest to make it possible to deactivate it as an "advanced" option.

And more importantly to document it so that other people don't have to search like I did to understand why their lightbox plugins do not work.

Regards.


ReplyQuote
Arthur Sereno
(@keysyl)
Member Admin
Joined:4 years  ago
Posts: 1519
25/12/2015 1:34 am  

Oh, I know your meaning now, I will submit the advise to developer and let them add the option, maybe need some time to finish it. Thanks.


ReplyQuote
matthieu
(@matthieu)
New Member
Joined:3 years  ago
Posts: 4
26/12/2015 1:52 pm  

Thank you !


ReplyQuote
Ania Grimone
(@ania-grimone)
New Member
Joined:2 years  ago
Posts: 3
19/07/2017 2:06 am  

Matt,

Here it is two years later and the problem still exists. I had your suggestion (above) working for a client of mine, and then the theme updated and knocked the fix out. AND trying to REFIX it using your suggestion above is not working ;-( AND it seems the author is not responding to the others in the forum having similar issues. ;-(

Have you bumped into the update issue I bumped into? If so, how does one fix it now?

Thanks

<sigh>


ReplyQuote
Magee
(@admin)
Member Admin
Joined:6 years  ago
Posts: 2409
19/07/2017 4:09 am  

Hello, your request has been reported to the development team. Please stay tuned for next update.


ReplyQuote
aziz tnani
(@aziz-tnani)
Active Member
Joined:2 years  ago
Posts: 18
08/11/2018 7:54 am  

Hi there,
I have a problem with the photos using a lightbox effect, does it come within the theme?
It does not work for me
even if I install a plugin with lightbox effect, it does not open my photos in a popup in the main page, only in secondary pages
Can someone answer me on this?


ReplyQuote
  
Working

Please Login or Register

Onetone Free WordPress Theme

Recent Posts

Cactus Free WordPress Theme