May 9, 2014 at 6:32 am #262142
I am one of the many people trying to use a custom lightbox plugin (FooBox) for galleries and such. The support forum has many requests for how to turn off the default prettyPhoto and the answer is always by editing js/avia.js and commenting out the prettyPhoto line there.
Unfortunately this gets overwritten with theme updates and as far as I know, there isn’t a way to maintain this in my child theme (if there is a way, then perhaps that would be the solution), so it’s kind of a pain to remember to re-edit the file after every update of the theme.
Would it be possible to just make this a theme admin setting? A simple “disable prettyPhoto” checkbox?
May 9, 2014 at 7:32 am #262187
- This topic was modified 3 years, 2 months ago by ilowelife. Reason: Clarifying my issue paragraph
We are aware of that, in the meantime you can use this child theme (as a starting point), which deactivates the standard pp lightbox and loads the fancybox script instead.
JosueJune 9, 2014 at 2:11 pm #276433
Thanks for great Tech support.
This is a 2 part question. As per prior support answer:
Enfold\js\prettyPhoto\js folder and open jquery.prettyPhoto.js file. Search “theme” and find http://i.imgur.com/VKAoooU.jpg
and change “pp_default” with “dark_square”.
Is there a way to edit or call a replacement jquery.prettyPhoto.js file in a child theme such as the child theme attached?
Also I just downloaded this child theme and it has a lot of existing function calls?
The child theme I currently run was from last year and came with a blank function file which was used for styling only. I have added few simple functions but nothing referencing similar functions to this sample.
Is this updated child theme a better version to work from (just without the dequeue / register scripts related to the question above for fancybox?
PaulJune 9, 2014 at 5:28 pm #276474
You must be logged in to reply to this topic.