Hi,
is it somehow possible to remove the featured image of a post if there is none selected? I’d like to get rid of the placeholder image.
In content.php, locate this and remove it:
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />
Also is it possible to change the dimensions of the featured image? Currently it seems to tall, it pushes the text way down.
In functions.php, find:
add_image_size( 'thumb-large', 720, 340, true );
And modify to your size.
These edits should be done via a child theme. Overwrite of templates and functions. So for the thumbnail size change, you would copy the whole alx_setup function to the child theme and then modify that single value. For the content.php fix, copy over content.php to the child theme and make your edits.
A sample child theme is available in the Help dropdown in Theme Options.
Remove this from content.php
<img src=”<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png” alt=”<?php the_title(); ?>” />
and
change –>
add_image_size( ‘thumb-large’, 720, 340, true );
..
comment these lines