Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

No index and canonical appearing at same time

Discussion in 'Troubleshooting & How-To's' started by Billy Bear, Jul 16, 2017.

  1. Billy Bear

    New Member

    Jul 16, 2017
    Likes Received:
    What code would i need to add in my functions.php file:

    When a page contains a "no index" tag the canonical page should be stripped out

    I am using yoast plugin. Even though there is no canonical link placed in the field, the canonical still populates. I believe this is a known wordpress element.

    A canonical tag should never appear when a no index tag is present.

    Thanks Billy

Share This Page

Monarch Social Sharing Plugin