Awake desable post image but keep thumbnail

resolved (5 posts) (2 voices)

  1. 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

    Posted 1 year ago #
  2. Elliott
    Support

    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.

    Posted 1 year ago #
  3. 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

    Posted 1 year ago #
  4. Elliott
    Support

    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.

    Posted 1 year ago #
  5. Thank you Elliott it is resolved

    Posted 1 year ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme