Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1001518
Make entire portfolio image clickable
Closed

Comments

  •  2
    wlm2015 started the conversation

    Hi,

    I love the portfolio animation/hover effects but there's one issue: All users tend to click on the image, which results in no action. It takes them a bit of extra time to click on the little icon to view the page (portfolio item). How can I make it so that the whole image is clickable?

  •  2
    wlm2015 replied

    Well, never mind. Here's the solution I used:

    in the file: thegem\gem-templates\portfolios\content-portfolio-item.php


    change this line #132 : 


    <div class="links-wrapper"> 
    

    to this: 


    <div class="links-wrapper"  onclick="location.href='<?php $thegem_link = get_permalink(); echo esc_url($thegem_link); ?>';" style="cursor: pointer;" >