Support » Plugin: All in One SEO Pack » Single quotes on prev/next links in archives

  • Resolved yliharma

    (@yliharma)


    Hello,
    I’ve noticed that AIOSP plugin adds the prev and next links for archive pages using single quotes for the html attributes rather than double quotes.
    This creates unvalid html: can you please fix it?

    <!-- All in One SEO Pack 2.9.1 by Michael Torbert of Semper Fi Web Design[1054,1086] -->
    <link rel='prev' href='https://www.example.com/category/recipes/page/2/' />
    <link rel='next' href='https://www.example.com/category/recipes/page/4/' />
    

    Thanks!

    • This topic was modified 7 months, 2 weeks ago by  yliharma.
    • This topic was modified 7 months, 2 weeks ago by  yliharma.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author wpsmort

    (@wpsmort)

    I tested this with the W3.org HTML validator and it did not return any error about single quotes not being valid HTML. In addition, on a brand new install of WordPress with the default theme active and no plugins installed, WordPress outputs the same HTML code with single quotes:

    <link rel='prev' title='Hello world!' href='http://domain.com/hello-world/' />

    Hi @wpsmort,
    you’re right, it’s valid HTML but various SEO experts state that using single quotes is a problem with Google and so have asked us to fix those prev/next links.
    Personally I haven’t found evidence of this claim, but for the sake of consistency (e.g. the canonical link you provide for the page has double quotes…) would you consider changing that bit of code?
    I’ve looked at the code and it’s a matter of minutes…

    Thanks for the answer!

    Plugin Author wpsmort

    (@wpsmort)

    I’ve opened an issue for this in Github here – https://github.com/semperfiwebdesign/all-in-one-seo-pack/issues/2088

    Thanks a lot 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Single quotes on prev/next links in archives’ is closed to new replies.