Turn off PrettyPhoto Lightbox on *only* the portfolio page(s)

resolved (9 posts) (4 voices)

  1. arroway
    Member

    I'm trying to figure out the best way to turn off the lightbox - only on the portfolio page(s). I have it automatically turned on for all images on the site, but my client does not want it on the portfolio page because he think's it's not very intuitive. He'd like the image that is shown in the gallery to link directly to the post, with no lightbox effect.

    Can you point me in the right direction?

    Thanks!

    Posted 4 years ago #
  2. Elliott
    Support

    Hello arroway,

    If you are using the gallery style then open up /wp-content/themes/infocus/lib/includes/template-portfolio-gallery.php and on line 214 you should see this..

    <a class="load_portfolio_img" rel="lightbox[portfolio]" href="<?php echo $portfolio_video_link; ?>">

    Go ahead and change it like this..

    <a class="load_portfolio_img" href="<?php the_permalink(); ?>">

    Let us know if that worked for you.

    Posted 4 years ago #
  3. arroway
    Member

    Absolutely Perfect!! Thank you so much! :)

    Posted 4 years ago #
  4. Elliott
    Support

    Glad that worked for you arroway, if you have any other questions then let us know.

    Posted 4 years ago #
  5. capturefour
    Member

    hi there,
    i am trying ot do this on the current template and i cant find this folder or file...
    Can you please tell me how to do this in the new version 3.1

    Thanks in advance

    Posted 1 year ago #
  6. Elliott
    Support

    Send us a link to the page with the image your wanting to disable prettyPhoto on.

    Posted 1 year ago #
  7. capturefour
    Member

    Here is the link for the 2 pages that i need to fix. The images should open each girls information page instead of opening the image.

    [Moderated]

    Posted 1 year ago #
  8. You can also set it, when creating a portfolio item, to link to the post, rather than the image.

    Posted 1 year ago #
  9. Elliott
    Support

    Here is the option IamMarix is referring to, http://mysitemyway.com/docs/index.php?title=Portfolio_Options#Link_to_post.

    Posted 1 year ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme