• Resolved djrm

    (@djrm)


    Hello!

    I’m not sure if I’m doing this correctly, but I’ve installed the latest version of Yoast SEO and enabled all relevant Meta tags in the settings (Open Graph meta data, twitter cards etc), but my posts are not being updated with any meta tags whatsoever.

    Do I need to add some code to the functions file in order to get these to work? Or does the plugin literally generate <meta property="og:url" etc automatically?

    Sorry for the dumb question.

    https://ww.wp.xz.cn/plugins/wordpress-seo/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support amboutwe

    (@amboutwe)

    Enabling Open Graph, Twitter, etc automatically generates the corresponding meta tags.

    Please elaborate on the issue you’re experiencing including as much detail as possible such as a link to the site in question, the expected outcome, any errors you received, steps to recreate the issue, and, if possible, screenshots.

    Thread Starter djrm

    (@djrm)

    Thanks for the reply. I can’t link to the site as it’s only running locally at the minute, but I’ll elaborate below:
    https://s9.postimg.org/capq5artb/dashboard.png
    https://s9.postimg.org/5yakvgor3/fb-enabled.png

    Expected outcome
    To at least see the meta tags in the header. At the minute, nothing is being injected into <head>.
    https://s9.postimg.org/d2se4hw0f/head.png

    Errors
    Here’s a screenshot of the console. I’m not sure if these are having an effect on Yoast.
    https://s9.postimg.org/q3450xikv/console.png

    Steps to recreate

    • Install the plugin
    • Enable meta tags on FB and Twitter
    • Refresh a blog post

    Hope that helps.
    Thanks!

    Plugin Support amboutwe

    (@amboutwe)

    Please check whether your theme contains a call to wp_head(). This is typically found in header.php or index.php and usually found immediately before </head>.

    Thread Starter djrm

    (@djrm)

    That got the meta tags working, thank you, and now I’m wondering if there’s a different way to add the meta tags without using wp_head() because now that I’ve included it the styling of my entire site is completely off, to the point were I would either need to rebuild a lot of sections or just leave out Yoast and a couple of other plugins.

    I inherited this WordPress site from another development team so I’m not sure why they decided to leave wp_head() out of the header.php file in the first place.

    Thanks for the help, Angi.

    Plugin Support amboutwe

    (@amboutwe)

    Not sure why the previous developers decided to leave it out as many plugins use wp_head() to add elements to the head section.

    Unfortunately, this means you’ll have to decide if you want to rebuild the current theme, install a new theme, or customize the SEO integration for the theme. Each option has it’s benefits and drawbacks so ultimately, it comes down to where you want to spend your energy.

    Thread Starter djrm

    (@djrm)

    I noticed a style.css file in the root of the theme that was causing the majority of the styling issues. I’ve removed that and things are in much better shape, so not much rewriting had to be done, thankfully.

    Thanks for all the help, Angi, have a great day!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Adding Meta tags to posts’ is closed to new replies.