Home Forums Theme support Portfolio img entry

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  7Theme Support 9 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Hi,

    In home page I have six portfolio img, everything is working well on phone and computer, when mouse hover photo appears button, which allows to open page. But on toucpad doesn’t work this function, there don’t show this button and when you click on img then just zoom the photo. Here is the problem with this function in touchpad, how to solve this?
    Otherwise it would be enough, if you say, how to make that by default, when I click on photo it would not zoom, but would open the portfolio page. What I need to change in portfolio-entry.php file?
    Because I need to fix it as soon as possible.

    My site: http://www.milk.lt/

    Thanks 🙂

    Can you show exactly where should I change the code? How should it look like?

    <?php global $ix, $title, $portfolio2_content, $masonry; ?>
    <!-- portfolio-entry -->
    			<div class='div_portfolio_entry'>
    				<div class="portfolio-img">
    					<div class="portfolio-img-inner">
    						<a class="prettyPhoto prettyPhoto[works-<?php echo $ix; ?>]" href="<?php print  img_original_url($post->ID) ?>">
    							<?php if($masonry==true)
    								{
    								?><img src="<?php print  img_masonry_url($post->ID) ?>" alt="" /><?php
    								}
    								else
    									{
    									?><img src="<?php echo sevenleague_image_url($post->ID, load_option("portfolio_thumbnail") ); ?>" alt="" /><?php
    									}
    							?>
    						</a> 
    					</div>
    					<div class='lrs'>
    						<div>
    							<h3><?php echo get_the_title(); ?></h3>
    							<p>&nbsp;</p>
    							<p>
    								<a title="<?php echo get_the_title(); ?>" class="lightbox prettyPhoto prettyPhoto[works-<?php echo $ix; ?>]" href='<?php print  img_original_url($post->ID) ?>'><i class='fa-icon icon-search'></i></a>
    								<a href='<?php echo get_permalink(); ?>'><i class='fa-icon icon-share-alt'></i></a>
    							</p>
    						</div>
    					</div>
    				</div>
    			</div>
    					<?php
    					$content=get_the_content();
    					if($portfolio2_content!="")
    						{
    						if(strlen("$content")>$portfolio2_content)
    							{
    							$content=(substr( $content, 0, strpos( $content, " ", $portfolio2_content )+1 ) );
    							}
    						$content=strip_tags($content);
    						echo "<p>$content</p>";
    						}
    					?> 
    				<?php if(load_option("portfolio2_showreadmore")=="on") { ?>
    				<a class="" href="<?php the_permalink(); ?>"> Read more </a>
    				<?php }?>

    Line 6:

    <a class="prettyPhoto prettyPhoto[works-<?php echo $ix; ?>]" href="<?php print img_original_url($post->ID) ?>">

    Replace it with this:

    <a href='<?php echo get_permalink(); ?>'>

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.