[Resolved] Elementor Social Share button text is being pulled into post excerpt

Home Forums Support Elementor Social Share button text is being pulled into post excerpt

  • This topic has 3 replies, 2 voices, and was last updated 9 months ago by David.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1148328
    Brenden

    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

    #1148383
    David
    Staff
    Customer Support

    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

    #1148409
    Brenden

    Awesome! Thanks for the super fast reply David!

    #1148417
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.