Archived topic
Insert share buttons on each preview of the archive.
4 replies · Started by Lourenço on March 29, 2023
Greetings my website has the blog post as infinite page scrolling in the home page.
I would like to put a share button in the end of each of the posts that are there.
Is it possible|?
Thanks in advance.
Lourenço
Hi there,
You would need a plugin to handle the share functionality. Maybe something like this:
https://wordpress.org/plugins/simple-social-buttons/
Then add it using a block element hook:
https://docs.generatepress.com/article/block-element-hook/
With the generate_after_content hook:
https://docs.generatepress.com/article/hooks-visual-guide/#posts-page
Let me know if this helps :)
Greetings I created a short code inserted it in the hook at the place generate_after_content
Ut doesn't display - please check here https://lourenco.blog
Thanks
It worked it was an issue of the plugin.
Thanks a lot!
No problem :)