Hi There @Veldhuizen
Thanks for writing in! First you need to setup a child theme using the following guide (https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57).
Add the following code into your child theme’s functions.php file.
function x_featured_image( $cropped = '' ) {
$stack = x_get_stack();
$fullwidth = ( in_array( 'x-full-width-active', get_body_class() ) ) ? true : false;
if ( has_post_thumbnail() ) {
if ( $cropped == 'cropped' ) {
if ( $fullwidth ) {
$thumb = get_the_post_thumbnail( NULL, 'entry-cropped-fullwidth', NULL );
} else {
$thumb = get_the_post_thumbnail( NULL, 'entry-cropped', NULL );
}
} else {
if ( $fullwidth ) {
$thumb = get_the_post_thumbnail( NULL, 'entry-fullwidth', NULL );
} else {
$thumb = get_the_post_thumbnail( NULL, 'entry', NULL );
}
}
switch ( is_singular() ) {
case true:
printf( '<div class="entry-thumb">%s</div>', $thumb );
break;
case false:
printf( '<a href="%1$s" class="entry-thumb" title="%2$s">%3$s</a>',
esc_url( get_permalink() ),
esc_attr( sprintf( __( ' "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ),
$thumb
);
break;
}
}
I see that you’re using Integrity theme. If you want to change all the occurrences. Then you need to check the following template files, find the word Permalink to:
, copy it into your child theme and you can remove or edit according to your requirement.
x/framework/views/integrity/content-image.php
x/framework/views/integrity/_content-post-header.php
x/framework/views/integrity/content-link.php
x/framework/views/integrity/content-page.php
x/framework/views/integrity/content-portfolio.php
x/framework/views/integrity/content-quote.php
Hope that helps.