Archived topic
Elementor Social Share button text is being pulled into post excerpt
3 replies · Started by Brenden on January 29, 2020
Hi,
My social share button text at the top of posts is being pulled into the short excerpt in the post index page for some reasons.
I'm pretty sure it's being caused by the theme and not other plugins.
Is there any code I can use to hide the text from the social share buttons being put into the excerpt?
I'm using latest version of Elementor for my visual builder and post index widget.
Visit url below to see demo.
Thanks,
Brenen
Hi there,
GP uses the WordPresses the_excerpt() function - i believe so does Elementor which is currently responsible for your blog. That function will grab whatever it finds in the Content.
The simplest way to fix this is to remove it from them from the_content,
One way is to save them as an Elementor template, and then add the template shortcode to the site using a GP Hook:
https://docs.generatepress.com/article/hooks-element-overview/
The after_entry_header hook will keep them in the same place but outside of the_content
Awesome! Thanks for the super fast reply David!
You're welcome