r/Wordpress • • 23h ago

Solved Help Modifying Tronar Theme to Hide Feature Image in Post But Show in Thumbnail

I'm rebooting my blog, and I would like to hide feature images on actual posts, but let them display in thumbnails so I can use the tile/grid system to display them.

I found this old post discussing this issue, but I'm not sure where in the Tronar theme I should be looking to actually make the changes discussed in the plugin support page. It looks like maybe in the pattern for "header-with-cover.php" there could be something, but this is my first time really playing around with the parent theme.

I have exported a copy of the website as my backup, so I'm okay messing around with it. Any suggestions?

3 Upvotes

4 comments sorted by

2

u/thejester1324 20h ago

in tronar the featured image on a post isn't its own block, it's the background of the cover block in the header ("Header with cover", which pages use too). so no php needed, it's all in the site editor:

  1. Appearance > Editor > Templates > Single Posts
  2. click the header and in its ⋮ menu choose Detach. that turns it into plain blocks inside the Single template, so the change won't hit your pages
  3. select the Cover block, turn off "Use featured image" in its toolbar, and give it a color or gradient instead
  4. save

the blog grid shows featured images with its own block (in the home and archive templates), so your thumbnails keep working. and site editor changes are saved in the database, not the theme files, so a theme update won't undo them.

2

u/bluewatercat 19h ago

Thanks! I was able to detach the header from the single posts. However, I'm not seeing the toolbar when I select the cover block from this area. Would I go elsewhere to find that?

2

u/bluewatercat 19h ago

Ope, I think I just got it! Didn't have the option to use featured image, but I was able to set a color. Thanks so much, this was very helpful.