Hi
I have a portfolio grid and each image and title link to the individual portfolio pages. The last entry in the grid links to the contact page via the “external link:” feature. However the image is clickable but the title text isn’t. So that it matches all the other entries in the portfolio grid, is it possible to make the “external link” clickable?
Regards
Colin
Hey waveseven,
Thank you for the link to your site, Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:
function avf_portfolio_title_link_mod( $title_link, $entry )
{
if( ! empty( $title_link ) )
{
return $title_link;
}
$title_link = get_post_meta( $entry->ID ,'_portfolio_custom_link', true) != "" ? get_post_meta( $entry->ID ,'_portfolio_custom_link_url', true) : get_permalink( $entry->ID );
return $title_link;
}
add_filter( 'avf_portfolio_title_link', 'avf_portfolio_title_link_mod', 10, 2 );
Best regards,
Mike
Hi Mike
That worked perfectly, Thank you very much !
Regards
Colin
Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike