Avoiding duplicate featured images on single pages

Posted in: Newspaper
Post count: 68

Hello everyone.

Even before adopting Newspaper, we used images manually inserted at the top of the text as the main image of our posts, thus stopping using the featured image block when we started using Newspaper to avoid duplication of images on single pages. However, I see that using the featured image block has its advantages, such as the “Image preload” option and the new feature for critical images in wp rocket that only covers featured images. Would it be possible to apply some configuration to avoid duplication of images in already published posts by hiding the image at the top of the text that was previously inserted? In this way, we and users who may migrate to the theme could have the advantage of adopting the featured image block and enjoy its benefits by avoiding this duplication of images at the top of the articles.

I await your evaluation

Post count: 27744

Hello,

A workaround is to use this code

.tdb_single_content .id_top_ad + figure {
display: none;
}

Set the code in Theme Panel – Custom code – custom CSS. This will hide the image that is set at the top of the post content.

Thank you!

Post count: 68

Perfect Anamaria, it worked well. But I’m having problems with the Only Single featured image block. We use the “video format” option in some posts so that the reader can see in the home highlights that the post contains a video between the paragraphs of the article and, in these cases, the block does not display any image, waiting for a video link that in this case was not previously configured by us. Is there any way to disable this function so that the block displays the featured image without a previously configured video link, even if the article is using the “video format” option? I tried using the Single Post Bg Featured Image instead, it works very well, but unfortunately it does not provide the title and alt description of the image, which loses the meaning of implementing a Featured Image for us, since the SEO effect for this is what motivates us to do such an implementation. I hope you can help me. Thank you.

Post count: 27744

Hello,

You can set a default image https://i.imgur.com/dHUqSKj.jpeg if there is no video set like the featured video to generate the featured image.
You can use Single Post Featured Image and this will have the alt and title in the source code.

Thank you!

Post count: 68

Hello Anamaria.

This is a possibility, but it will distort the post, especially for a news portal that in this case will no longer have the main illustration of the article. I think that the Newspapper technical team could provide an alternative, if they cannot adjust it so that the featured image is removed only when the video URL is filled in, then they could develop a separate block just for featured images, disassociating it from the featured video function, which I believe is a very specific functionality and should not interfere with its main purpose, which is to display the featured image of the post.

I hope you can provide this help that will be useful to me and many other people. Thank you.

Post count: 27744

Hello,

You can use two cloud templates; one with a featured image and one without a featured image. You can duplicate the single post template, and delete the featured image element if the post is video format and assign that template for this type of the posts https://forum.tagdiv.com/featured-image-or-video-7/
The same steps are for all templates -> https://forum.tagdiv.com/topic/how-to-add-different-sidebare-for-different-posts-with-the-same-category/

Thank you!

Post count: 68

Hi, Anamaria.

Thank you for responding and trying to help. This is an alternative, but it is an adjustment that does not look ideal, especially for a large portal. I would like you to consider my suggestion of adjusting the block or creating a simple block of featured images so as not to interfere with the functioning of the video format. I hope you think about it. Thank you.

Post count: 27744

Hello,

If you want this, then you can request a quote to our custom work team https://tagdiv.com/submit-a-request/

Thank you!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.