-
-
Hello,
Is it possible on the portfolio page to link the image, and not only the name of the projet and to delete div class=”center-bar v1”?
Thank you Costanza
-
Hello,
Yes, please go to file \includes\view\portfolio\loop-grid.php and find these lines:
<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>
replace with these:
<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; ?> <a href="<?php echo $link ?>"><img src="<?php echo esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port'.$columns, 'url')) ?>" alt=""></a> <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>
Let us know.
Best regards!
-
-
Viewing 2 reply threads
You must be logged in to reply to this topic.