[Resolved] Highlight text to Tweet it

Home Forums Support [Resolved] Highlight text to Tweet it

Home Forums Support Highlight text to Tweet it

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1450365
    Philippe

    Hi,

    To your knowledge, what the best options for my website visitors to highlight text to Tweet it. I have tried the Highlight and Share plugin but I do not like its layout. Any other possibilities that you know of, including doing a bit of coding?

    Thank you,

    Philippe

    #1450366
    Philippe

    I have also found this: https://highlight-tweet.webflow.io/ but I would need some guidance.

    ๐Ÿ™‚

    #1450422
    David
    Staff
    Customer Support

    Hi there,

    maybe this article will help:

    https://premium.wpmudev.org/blog/select-text-and-tweet/

    It explains creating your own plugin and how it works. They even provide the completed plugin in a zip file at the end of the article.

    #1450855
    Philippe

    Thank you, David, this plugin works better for me.

    I would love to be able to put on my site the code given here: https://highlight-tweet.webflow.io/#questions.

    I am stuck at “Add this custom code to your site”. Sure. Where? How?

    Thanks again

    #1450870
    Philippe

    Correction about both plugins that I have tried. They work the very first time and stop. In both cases, it is then impossible to highlight text. Let’s forget about them. Please, let me know about https://highlight-tweet.webflow.io/#questions

    #1450871
    David
    Staff
    Customer Support

    I am not sure if that is Webflow specific.
    You can try adding the code to your site using a Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    Select the WP_footer hook and set the Display Rules to Entire Site or the places you want it enabled.

    #1451113
    Philippe

    Done. Nothing happens.

    #1451205
    Tom
    Lead Developer
    Lead Developer

    Not sure if it will help, but you could try replacing this:

    $('body').tweetHighlighted({

    With this:

    jQuery('body').tweetHighlighted({

    If not, you’ll likely need to find something WordPress-specific.

    #1451267
    Philippe

    That was it. Great support from GP, as usual!

    #1451507
    Tom
    Lead Developer
    Lead Developer

    Glad we could help ๐Ÿ™‚

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.