[Resolved] How to change the featured image?

Home Forums Support [Resolved] How to change the featured image?

Home Forums Support How to change the featured image?

  • This topic has 7 replies, 3 voices, and was last updated 10 years ago by Tom.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #73537
    Pete

    Ok… it seems the featured image in the archives/search/author etc pages is placed by using the <?php do_action( 'generate_after_entry_header'); ?> hook and by use of a function in functions.php

    So, how do I edit this featured image if I create category.php or taxonomy-xyz.php or if I want to edit the image for the author or search archive pages?

    #73690
    Tom
    Lead Developer
    Lead Developer

    There shouldn’t actually be a featured image for any of those pages as they don’t have physical pages where you can add the image – they’re just created by WordPress.

    Do you have images showing up on this pages?

    The images showing inside each listed post is the image set for that specific post.

    #77042
    Pete

    inc/template-tags.php line 268 “Prints the Post Image to post excerpts”. How can this be disabled?

    #77302
    Tom
    Lead Developer
    Lead Developer

    Adding this to your code snippets should work:

    remove_action( 'generate_after_entry_header', 'generate_post_image' );

    #77491
    Pete

    That didn’t remove it ?

    This did…
    .inside-article .post-image a img.attachment-post-thumbnail.wp-post-image {display:none;}

    Then I gave my own featured image code it’s own classes

    #77548
    Emerson Rose

    Hi Tom, I’m trying to get your GP template to work and am having trouble setting a feature image only to the homepage. By feature image I would like it to be the entire width of the page… is this possible? Kindly, ER

    #77549
    Emerson Rose

    ok. Nevermind. Thanks for this superb template, Tom. Kindly, ER

    #77801
    Tom
    Lead Developer
    Lead Developer

    Glad you both found solutions 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.