Post Template: How to Hide Image in Style 2, so that it looks like Style 5?

Posted in: Newspaper
Post count: 82

Hi, I like style 2 more than style 5, because the title is 1 column. But I need to use it without showing the featured image. I can’t just remove the featured image, because in my home newspaper page view I want to show images.

So, how can I hide image in Style 2, so that it looks like Style 5?

Thank you so much!

Post count: 20688

Hi,

You could either modify that post template file from the theme, and comment or remove this code to not display the featured image in the post page
https://www.screencast.com/t/1KZco6Ptd
Or enter this code in Theme panel->Custom CSS section
https://www.screencast.com/t/DMgGlgbgVk

.single_template_2 .td-post-featured-image {
display: none;
}

Thanks

Post count: 82

Hi Simion, as I want also to have the option of template 2 for other posts, I tried to duplicate template 2 for building a new template 14.

I just copied these 2 files: single_template_14.php; loop-single-14.php

Then I replaced all mentions in single_template_14.php to loop 2, and changed them to loop 14.

But, it is not showing up my new template 14 in the post editor.

Do you know how can I make show my new template 14 in the post editor?

Thank you so much.

All the best,
Angel

  • This reply was modified 8 years by aberniz.
Post count: 20688

Hi,

If you would like to add a new post template follow these guides
https://forum.tagdiv.com/api-single-template-introduction/
https://forum.tagdiv.com/td_api_single_templateadd/
Please note that this is an advanced process.

Thanks

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