How to edit post template

Posted in: Newspaper
Post count: 5

Hey !
Is it possible to slightly edit a post template ?
Specifically, let’s say I want to add a custom HTML block somewhere inside the footer of Template 12, how to I go about doing that ?
Thanks !

Post count: 20688

Hi,

You can add a text widget in the footer and enter your HTML code there – https://www.screencast.com/t/EZV1H6xd9

Thanks

Post count: 5

Thanks Simon,
But I think this is for editing the footer of the whole page (class td-footer-wrapper) and I meant the footer of the post content. See screen shot: https://postimg.org/image/ig6nkl1sx/

Also, Aside from the specific case, I am more interested to find the general way to tweak and edit the template.

Thanks.

Post count: 20688

Hi,

Sorry for misunderstanding, you can find the post templates in the themes directory. For Post Template 12 you need to edit loop-single-12.php – https://www.screencast.com/t/8TBfuTsGJ and so on for other post templates. Hope this helps you.

Thanks

Post count: 5

So if I understand correctly the only why to do this is by PHP code ?

Post count: 20688

Hi,

Depends of what you want to modify, as you can see in the loop-single-12.php this is the structure of the post template – https://www.screencast.com/t/MoywbspEUq
As a simple example i added a heading between social sharing bottom and next/prev posts https://www.screencast.com/t/y3iIHZ8uwhttps://www.screencast.com/t/QA0rpK7Q
Make a backup of the file you modify just to be safe and you should consider hiring a developer/freelancer to help you if you don’t know how to go about it.

Thanks

Post count: 5

Thanks for the detailed response Simion !

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