February 5, 2015 at 5:52 am
#21608
Theme Horse Support Team
Keymaster
Hi felipe1,
This services widgets is displayed from the theme folder -> inc -> widgets -> interface_widgets.php line no 278 and you will fine this code
if ( has_post_thumbnail() ) {
echo'<div class="service-icon">'.get_the_post_thumbnail( $post->ID, 'icon' ).'</div>';
}
and replace it with this below code
if ( has_post_thumbnail() ) {
echo '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( $post->post_title ) . '">';
echo'<div class="service-icon">'.get_the_post_thumbnail( $post->ID, 'icon' ).'</div>';
echo '</a>';
}
Before making any changes first make child theme and then only customize the code. If you add this code directly inside the interface_widgets.php file then it will work but while updating to our new version all your customisation code will be lost. If you didn’t make any changes then you need to make the same changes for each and every time.
Thank you!