• Hey all!

    I’ve got an issue right now where something in WordPress is adding a few meta tags:


    <meta property="og:title" content="Home Page" />
    <meta property="og:url" content="https://thefoundation.com/" />
    <meta property="og:site_name" content="The Foundation" />
    <meta property="og:description" content="" />
    <meta property="og:image" content=""/>

    Upon troubleshooting I found that it wasn’t any plugins, it was being attached to the WP_head, and is something in our theme files. I did a search of our theme files and it doesn’t seem like any of them have any of these meta tags in there…

    I don’t know if anyone has had any experiences with something like this? Any thoughts on how to troubleshoot and fix it? I’ve manually added meta tags beneath the wp_head to try and “overwrite” them, but this doesn’t seem to be working either.

    The website in question is https://www.thefoundation.com

    Thanks in advance for any and all help!

Viewing 9 replies - 1 through 9 (of 9 total)
  • It could be injected through .js. Have you checked your themes .js files?

    I just took a look and sharethis is adding it in the file buttons.js ??

    Thread Starter jamescosta

    (@jamescosta)

    Keith!

    Thanks so much – good find, I didn’t see it there at all. Any idea why it’s being loaded even when I disable the ShareThis plugin? Doesn’t seem to make sense to me whatsoever…

    I’m attempting to post in the ShareThis forum as well, but am having trouble doing so (go figure, the Submit button doesn’t work)… will update this if I find anything out!

    Thanks!

    Try ‘ctrl + f5’ to do a complete refresh after disabling the plugins.

    Thread Starter jamescosta

    (@jamescosta)

    Hey Keith!

    The plugin is disabled right now and I still see it (I did a hard refresh by Resetting Safari and doing a hard refresh – I’m on a Mac, but I know what you mean)… SO strange, and I’ve not a clue why changing the theme solves the issue from happening, but maybe it’s how we’ve installed the plugin and we need to redo it.

    We’re getting closer! I REALLY appreciate your help!

    No problem ?? Maybe it’s hardcoded into the theme?

    Thread Starter jamescosta

    (@jamescosta)

    Well, thing is it’s not in the functions.php file OR the home-page.php file (which is where this issue is really giving us a headache right now)… it’s mentioned in a few files, but all as the same code that it appears as in single.php and a couple other related files:

    <?php if (function_exists('sharethis_button')) { sharethis_button(); } ?>

    I just looked through the sharethis plugin code and that function calls on the buttons.js file. I would ask in the sharethis forum if there is a way to disable or remove it ??

    Thread Starter jamescosta

    (@jamescosta)

    Thank you sir! You’re seriously the best. ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Unknown meta tags being added’ is closed to new replies.