• Resolved joanmcl

    (@joanmcl)


    I want to remove BuyMeACoffee from our site. They now have a plug-in, but at some point a few years ago when they hadn’t got an plug-in I edited the WP 2020 theme’s code to install on each page this:

    <script data-name="BMC-Widget" src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="joanmcleod" data-description="Support me on Buy me a coffee!" data-message="Hi there! Like what we've done? You can buy me a coffee!" data-color="#FF5F5F" data-position="Right" data-x_margin="18" data-y_margin="90"></script>

    Can you help me remove it?

    • This topic was modified 2 years, 6 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have a look for that script in the theme’s header.php file. If it’s there, save a backup copy of the file contents and then delete the code, save and refresh the webpage to check. Or, maybe in the theme’s settings there is an option to add and remove code in the header/footer etc.

    Thread Starter joanmcl

    (@joanmcl)

    I’ve checked all the files (in my server data) with a search and with a string finder plug-in and can’t find it. I’ve just installed another theme to see if that wipes it out…argh. Will let you know if it works! Thank you for the suggestion =)

    Thats a good approach. Change the theme and disable plugins until it vanishes. Don’t forget to disable/clear any caching plugin. Good luck!

    Hey @joanmcl,

    Throwing in my two cents here: if you want a “quick fix” to at least remove the element from the DOM via CSS, you can add the following through Appearance > Customize > Additional CSS

    #bmc-wbtn { display: none; }

    Not pretty – but it works 🙂

    Thread Starter joanmcl

    (@joanmcl)

    Thank you all! All fixed. I did have both the theme change (fresh one chosen!) and a cache lock to clear up.

    Great. Thanks for the update.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Removing BuyMeACoffee’ is closed to new replies.