How to add code to the end of every Post?

Posted in: Newspaper
Post count: 174

I want to add a button/link at the bottom of EVERY Post (above the tags section), but not for Pages (just Posts), and then add it to the child theme. Can you give me detailed instructions on how to do this? Thanks

Post count: 27744

Hi,

You can add a button/link in the post editor -> https://i.imgur.com/V4lED7d.png There is no need to use the child theme

Thank you!

Post count: 174

Is there a way to do it via the Classic Editor? Also this would be where I just have to post it once in the template not every time I create a post right?

Post count: 27744

Hi,

Yes, you can add it in the classic editor: https://i.imgur.com/qo6TpK9.png
No, this is in the post, not in the template. You need to edit the post to add the button, not the template because I think that you want to have different information for each post.

Thank you!

Post count: 174

This is for a ‘google news’ button so the goal was to have it for every news post. Problem with adding to each post individually is I’d have to go through like 2000 posts which isn’t sustainable. Maybe this is something tagdiv could add in the future is add an automatic ‘google news’ button for better sharing?

If I want to edit the posts template for child theme, would that be ‘single.php’ ? ty

Post count: 27744

Hi,

If you want to add it to have it for all posts with the same button, then you can edit the template with tagdiv composer and there is the button -> https://i.imgur.com/9d0bCwD.pnghttps://i.imgur.com/BwGWhua.jpg You need to use a cloud template -> https://forum.tagdiv.com/design-post-pages-using-cloud-library-templates/

Thank you!

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