• kirtiraj

    (@kirtiraj)


    Twitter links are not adding(also no style getting applied) after adding shortcode to the text editor and also wanted to dispaly twitter icon, but it is showing normal link. How can I add twitter link without bitly integration.

    (Note: I am using Headless wordpress with frontend as a Gatsby.)

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter kirtiraj

    (@kirtiraj)

    Plugin Settings:
    Mark Twitter Links: Yes
    Use Dashicons: Yes
    Disable Stylesheets: Yes
    Capitalise first letter of Tweet?: Yes
    Bypass UTF-8 Decode: Yes

    Thread Starter kirtiraj

    (@kirtiraj)

    The console is showing error : Uncaught ReferenceError: inline_tweet_sharer_open_win is not defined at HTMLAnchorElement.onclick.

    What should I do?

    Plugin Author Rhys Wynne

    (@rhyswynne)

    Hi kirtiraj,

    I’m testing locally and it appears to be working fine.

    I suspect it may be because of headless setup at your end. As I tend to not work in headless, I can’t really advise further on that element. Could you test non headless? Like a default theme?

    I’m going to assume that you’re adding the tweet via Gutenberg. Are you using the Classic Editor to add the links? Just so I get an idea on how things are working at your end.

    But I’m not sure I’ll be super helpful, I’m afraid.

    Thread Starter kirtiraj

    (@kirtiraj)

    Yes Im using gutenberg editor.

    Temporarily I am pasting your code (inline-tweet-sharer.js) into console then I am clicking on url and it seems to work properly(except styling not applying).

    But also I want to change the link to tweet (variable $linktotweet in display.php file)as I am using Frontend URL of the website but it is showing Banckend URL.
    I tried to reassign variable $linktotweet = get_preview_post_link(); after this it is not showing any url.

    (Note: FE URL is different than BE URL)

    Thread Starter kirtiraj

    (@kirtiraj)

    get_preview_post_link function gets me a FE URL which is dynamic for every post.

    Plugin Author Rhys Wynne

    (@rhyswynne)

    Hi Kirtiraj,

    If you’re changing the plugin, then it’s outside the scope of what I can realistically support, so I’m unable to provide support.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Twitter links are not adding’ is closed to new replies.