infocus Wordpress - Disable large image popup from thumbnails in the portfolio

resolved (6 posts) (2 voices)

  1. bendbutler
    Member

    Hi there, I am trying to disable the larger popup image that appears when you click on a thumbnail on the portfolio. I'm basically creating a page where all I want is a thumbnail and a 'visit site' link, but I don't want a larger image to display when the thumbnail is clicked. Any way to easily do this?

    Posted 10 months ago #
  2. Elliott
    Support

    Hello bendbutler,

    Try adding this line in the bottom of your style.css file,

    .portfolio_single_pic { display: none; }

    Let us know if that is what you were wanting.

    Posted 10 months ago #
  3. bendbutler
    Member

    Hi Elliot, I tried this, but it didn't seem to change anything. I'd like to disable the entire process though. So no rollover on the thumbnail, no faded magnifying glass, and no popup larger image.

    Posted 10 months ago #
  4. Elliott
    Support

    Sorry bendbutler, I thought you were talking about the image when viewing your post.

    To get rid of prettyPhoto on the portfolio then open up /wp-content/themes/infocus/lib/includes/template-portfolio-gallery.php and on lines 214 - 217 you should see this,

    <a class="load_portfolio_img" rel="lightbox[portfolio]" href="<?php echo $portfolio_video_link; ?>">
    	<span class="rm_portfolio_img noscript"><img src="<?php echo $gallery_image_url; ?>" alt="" /></span>
    	<span class="roll_over<?php echo $rollover_class; ?>"></span>
    </a>

    Change it like this,

    <a class="load_portfolio_img" href="<?php echo $portfolio_video_link; ?>">
    	<span class="rm_portfolio_img noscript"><img src="<?php echo $gallery_image_url; ?>" alt="" /></span>
    </a>

    Let us know if that is what you were wanting.

    Posted 10 months ago #
  5. bendbutler
    Member

    That's fantastic Elliott! The magnifying glass and the popup are gone. Is there a way to disable the link from the image though? It still has a hyperlink that goes to another page that has just the image.

    Posted 10 months ago #
  6. Elliott
    Support

    Yes, on line 214,

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

    Change it like this,

    <a class="load_portfolio_img" rel="lightbox[portfolio]" href="#">

    Let us know if you need anything else bendbutler.

    Posted 10 months 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