-
-
Hi. I want to remove the link from the portfolio images. I want them to still open into lightbox, but I don’t want them to link anywhere. In fact, I don’t really need either icon, but the magnifying glass is fine if I have to keep it in order to have the lightbox.
https://lizybloom.com/carnegie/medical-supplies/
Thanks.
Lizy Bloom
-
Hello,
Please go to file \includes\view\portfolio\loop-grid.php and find this block of code:
<?php }else if($style == 'basic'){ ?> <div class="portfolio-item mix <?php echo esc_attr($sort_classes) ?> <?php echo esc_attr($extra_class) ?> <?php echo esc_attr($style) ?>" data-id="<?php echo get_the_ID() ?>"> <div class="he-wrap tpl2"> <?php if($columns == 5) $columns = 4; ?> <img src="<?php echo esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port'.$columns, 'url')) ?>" alt=""> <div class="overlay he-view"> <div class="bg a0" data-animate="fadeIn"> <div class="center-bar v1"> <a href="<?php echo esc_url(codeless_image_by_id(get_post_thumbnail_id(), array("width"=> 1200, "height" => 1200), "url")) ?>" class="link a2 lightbox-gallery lightbox" data-animate="fadeInRight"><i class="moon-search-3"></i></a></a> <a href="<?php echo $link ?>" class="link a1" data-animate="fadeInLeft"><i class="moon-link-4"></i></a></a> </div> </div> </div> </div>
And remove this line:
<a href="<?php echo $link ?>" class="link a1" data-animate="fadeInLeft"><i class="moon-link-4"></i></a></a>
Save file.Best regards!
-
Thanks! That worked great. Can you also tell me how to remove the link in the portfolio item? I really just want images to open up to bigger images for now. Thanks.
-
Hello,
In the same file, find this line(it’s used more than once):
<h5><a href="<?php echo $link ?>"><?php echo get_the_title() ?></a></h5>
Replace with this:
<h5><?php echo get_the_title() ?></h5>
Best regards!
-
You must be logged in to reply to this topic.