Hi,
is it possible the desable post image but keeping thumbnail image at the same time ?
I would like to have image thumbnails only in popular posts, relate posts and widgets.
Thank you
(5 posts)
(2 voices)
Hi,
is it possible the desable post image but keeping thumbnail image at the same time ?
I would like to have image thumbnails only in popular posts, relate posts and widgets.
Thank you
Hello gjfo,
Open up /wp-content/themes/awake/lib/includes/template-blog.php and on line 58 you should see this,
<?php webtreats_post_image(); ?>
Go ahead and change it like this,
<?php if (!get_post_meta($post->ID, 'disable_blog_page_image', true)) { webtreats_post_image(); } ?>
And then in each post where you want to disable the post image (for the blog page) then create a custom field with a name of 'disable_blog_page_image' and a value of anything. If you want to do it for every image then go ahead and delete that line.
HI Elliott,
it works fine on blog page but the post image still shows on category page.
is it possible to disable post image also in category page?
Thank you
Open up /wp-content/themes/awake/archive.php and you can do the same thing on line 82. If you want it on the search pages then make the same change in search.php also.
Thank you Elliott it is resolved
You must log in to post.