This topic has 9 replies, 4 voices, and was last updated 9 years by Andrei.

  • Author
  • #81519
     Eduard
    Participant

    Hi!

    On four pages have doubles rel = “canonical”.

    These pages (for example, your demo site).

    http://seventhqueen.com/themes/kleo/members/

    http://seventhqueen.com/themes/kleo/groups/

    http://seventhqueen.com/themes/kleo/activity/

    http://seventhqueen.com/themes/kleo/register/

     

    Yoast SEO plugin inserts it double.

    Below advice SEO advisor:

    In cases of multiple declarations of rel = canonical, Google will likely ignore all the rel = canonical hints, so your efforts to avoid duplicate content issues may go useless.

     

    Can do you recommend something? Thank you.

    #81727
     Laura
    Moderator

    Hello, will assign the ticket to a higher support lever who can help and advise you in your query.
    Thanks! 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #81732
     Eduard
    Participant

    Thanks Laura! 🙂

    #81863
     Radu
    Moderator

    Hi,

    You can disable one of the canonical tag by using this function adding in kleo-child/function.php

    COPY CODE
    
    // Remove Canonical Link Added By Yoast WordPress SEO Plugin
    function at_remove_dup_canonical_link() {
    	return false;
    }
    add_filter( 'wpseo_canonical', 'at_remove_dup_canonical_link' );
    

    Regards

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #81865
     Eduard
    Participant

    Thanks Radu!

    #81886
     Radu
    Moderator

    You’re welcome

    I given a closer look into the issue and you should better use this snippet :

    COPY CODE
    
    # Remove WordPress' canonical links
    remove_action('wp_head', 'rel_canonical');
    

    Instead of the code provided you earlier.

    Best Regards

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #81892
     Eduard
    Participant

    This is how I understand the file kleo-child/function.php?
    If so, replace the snippet in this file and effect is not produced.
    I also have the double rel = ‘canonical’ on pages.

    #82030
     Radu
    Moderator

    Hi,

    If the second code doesn’t work please use the first code.

    The child theme needs to be active.

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #82140
     Eduard
    Participant

    The first solution is generally removes all rel=”canonical” on all pages. Unfortunately, this is not the solution to this problem.

    #82725
     Andrei
    Moderator

    I have given an deeper look into this issue and this happens only in buddypress pages.
    The conflict is between Yoast SEO and BuddyPress plugin, and please note that our theme doesn’t touches any logic related to the canonical meta tags.

    I recommend you to contact the author of the Yoast SEO and report this issue.

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 10 posts - 1 through 10 (of 10 total)

The forum ‘Plugins questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?