Front Page Image Duplication

  • Author
    Posts
  • #164094

    marshmk
    Member
    Original poster

    Taras, I am using the following code to suppress the featured image on the page so that I can manually add and configure an image on the page:

    .page:not(.page-template-front-page) .site-main .hentry > .entry-thumb {
    display: none;
    }

    It hide the featured image on the page but allows the thumbnail on the front page, which is what I want it to do. However, when I manually add an image to the page the front page shows the featured image thumbnail and a thumbnail of the image I manually added. Here’s a link to the screenshot in my media library – https://marshmk.files.wordpress.com/2021/08/screen-shot-2021-08-28-at-5.20.13-pm.png?resize=438%2C438

    How do I make it show only the featured image thumbnail?

    Thank you very much,
    Mike

    The blog I need help with is: interruptingthesilence.com

    #164098

    tarasdashkevych
    Theme Author

    Hello Mike,
    Thank you for providing a screenshot.

    You can use this custom CSS to hide the first image in the content area of the grid item:

    
    .grid-item .entry-content > .wp-block-image:first-of-type {
      display: none;
    }
    

    However, it will affect all templates. If you want to apply this change only for the homepage, please use this custom CSS instead:

    
    .home .grid-item .entry-content > .wp-block-image:first-of-type {
      display: none;
    }
    

    Hope this helps. Please let me know if you have any additional questions.

    Kind regards,
    Taras

    #164099

    marshmk
    Member
    Original poster

    Thank you Taras for your quick and helpful response. I used your first option and it creates the appearance I want. You said this option “will affect all templates.” What other templates are you referring to? I’m not sure which option I should be using. ‘

    Again, thank you for your assistance and time.

    Mike

    #164109

    tarasdashkevych
    Theme Author

    Hello Mike,
    You are very welcome.

    “What other templates are you referring to?”
    – First of all, I would like to apologize for not providing enough information for this matter. By “all templates”, I’ve meant templates that display a grid based on child pages: Front Page template and Grid templates.

    Please let me know if you have any additional questions.

    Kind regards,
    Taras

    #164111

    marshmk
    Member
    Original poster

    Taras, there is certainly no need to apologize. You have been most helpful and patient with me and I am grateful for that. Your answer clarifies what I need to do. Thank you very much.

    Mike

    #164115

    tarasdashkevych
    Theme Author

    You are always welcome, Mike. Feel free to open a new thread in this forum if you’ll have any other questions regarding the Fortune theme. I’m always happy to help.

    Kind regards,
    Taras

The topic ‘Front Page Image Duplication’ is closed to new replies.