Plugin Settings:
Mark Twitter Links: Yes
Use Dashicons: Yes
Disable Stylesheets: Yes
Capitalise first letter of Tweet?: Yes
Bypass UTF-8 Decode: Yes
The console is showing error : Uncaught ReferenceError: inline_tweet_sharer_open_win is not defined at HTMLAnchorElement.onclick.
What should I do?
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.
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)
get_preview_post_link function gets me a FE URL which is dynamic for every post.
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.