open pics with same plugin
Support Area › Forums › Photobug › open pics with same plugin
- This topic has 6 replies, 2 voices, and was last updated 11 years, 9 months ago by Bill Robbins.
-
AuthorPosts
-
July 10, 2012 at 01:44 #6742Christian ReimannParticipant
Good morning Bill,
i am making some progess.
One more question i have:I want to open all pics with the plugin “prettyphoto”. What do i have to do to implement this for all pics.
Thanks!
greetings from germanychris
July 10, 2012 at 11:26 #6750Bill RobbinsModeratorGuten Tag,
You can do that. We’ll first need to diable the built in lightbox which will take just a bit of theme editing. Here’s how:
- Go to the Appearance section and select edit to open up the theme editor.
- From the list of files on your right, choose functions.php and look for this spot (on line 34):
wp_enqueue_script('lightbox');
and delete it.
- Next scroll down to line (218) and delete this section:
function organizedthemes_load_lightbox_styles() { if( !is_admin()){ wp_enqueue_style(''.of_get_option('lightbox_style').''); } } add_action('wp_enqueue_scripts', 'organizedthemes_load_lightbox_styles');
- Save your changes.
That will remove the built in lightbox from the theme as well as it’s styles. You should now be able to install the pretty photo plugin you’d like to use. As long as it is set to use the class “lightbox” on links to determine which links to open in it, you shouldn’t need to edit anything else.
If you have any questions, let me know,
BillJuly 10, 2012 at 12:22 #6753Christian ReimannParticipanthi Bill,
thanks for you rapid help!
I did all you say…
but as i expected, now the pics are only opened in the broswer without any plugin.What can i do now?????
greetz
chrisJuly 10, 2012 at 17:52 #6754Bill RobbinsModeratorYou may have to change the link tags to use with your plugin. Which PrettyPhoto based plugin are you planning on using? There are multiple ways to work with the script so I want to make sure I direct you to the one that will work with the particular plugin you’re using. Just send over a link to the plugin page and I’ll give you the details.
Bill
July 11, 2012 at 00:36 #6756Christian ReimannParticipantdear Bill,
i am using this plugin:
“prettyPhoto Media
Display images and other media utilising the prettyPhoto jquery lightbox clone.
Version 1.4”here is the link to the web reference:
http://binaryhideout.com/prettyphoto-media-wordpress-plugin/i hope we can solve this, would make me really happy….
greetings
chrisJuly 12, 2012 at 12:00 #6758Christian ReimannParticipanthi dear Bill,
did you already watch out for my problem with prettyPhoto?
I hope you can solve the problem, is really a big wish i have.
Next week is my 40th birthday and maybe you can give me the solution as a gift.I need it more or less urgent, because the website i kind of media i want to get a job for the Deutsche Presse Agentur (DPA).
Hope you can help me….
thanks
chrisJuly 12, 2012 at 12:46 #6759Bill RobbinsModeratorChristian,
I just took a quick look at the plugin. Thankfully it appears that they will let you choose how the plugin interacts with a theme. I haven’t tested it, but from their options page it appears you would set it this way:
prettyPhoto selector — lightbox
prettyPhoto hook — classThat’s how the Lightbox that’s included with the theme is set to work.
If want or need to edit the HTML of the various galleries that are part of the theme, you can do that in these files:
gallery-full.php
gallery-layout.php
gallery-portfolio.phpThe spot you’ll want to edit in each looks like this:
echo '<a class="lightbox" rel="'.$parent_title.'" href="';
or this:
echo '<a class="lightbox brick" rel="'.$parent_title.'" href="';
You may also need to remove this section from the
custom.js
file:// Load Lightbox $j(document).ready(function($j){ $j('.lightbox').lightbox(); });
since that jQuery plugin is no longer being used.
You can change the class names and the rel names here if you need to. The rel tag is what is used in the theme to associate images that are in the same post. If you change that and use PrettyPhoto on an archive, the prev/next buttons will span the whole archive page and not just one post.
If you have any questions let me know,
Bill -
AuthorPosts
- The topic ‘open pics with same plugin’ is closed to new replies.