Canonical issue with Divi Extra Theme

#749434
  • Resolved Kenneth Fernandes
    Rank Math free

    Hello I’m having an issue that I need help with. Under SEO Analyzer I get an error “No canonical link tag found on your homepage”. I’m using Divi Extra theme. It has homepage setting set to use “an extra category layout” so there is no home page listed under pages for the home page that I can edit to add the canonical tag. Home is auto generated based on the layout. With that said, how do I set the canonical tag for the home page given I can’t find it under pages to edit. Any solution to use this with Divi Extra theme?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello, I apologize for the issue you are facing with setting the canonical tag for your homepage using the Divi Extra theme.

    In cases where the homepage is not directly editable as a page in WordPress due to the theme settings, you can still set the canonical URL using Rank Math. Here’s how you can do it:

    1. Edit Homepage SEO Settings via Rank Math MetaBox:
      • Navigate to the homepage using the Divi Builder.
      • Click on the Rank Math SEO icon to access the SEO settings for the page.
      • Click the Edit Snippet button to add the Canonical URL for your homepage.
      • Update the page to save the changes.

    If you encounter any difficulties or need further assistance with setting the Canonical URL for your homepage using Rank Math and the Divi Extra theme, please feel free to reach out to our support team through this link. We are here to help you with any additional guidance you may need.

    I hope this helps resolve the issue you are facing with setting the canonical tag for your homepage. Thank you for bringing this concern to our attention.

    Sources:
    Homepage SEO Settings via Meta Title and Description
    Setting Canonical URLs in Rank Math » Rank Math
    How to Fix Duplicate Meta Tags » Rank Math

    There is no way to navigate to the home page in the divi builder with the extra theme when home page is set for an Extra Category Layout. When you navigate to homepage only option is edit layout. You don’t have option to edit in divi builder.

    Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    Rank Math should automatically include the self-referencing canonical to your homepage when it is set to index. However, if the canonical URL is not included, please try to use the following filter on your website and see if that works for you:

    add_filter( 'rank_math/frontend/canonical', function( $canonical ) {
    	global $wp;
    	$current_slug = home_url( $wp->request );
        
    	if( is_front_page() || is_home() ){
            $canonical = $current_slug;
        }
    	return $canonical;
    });
    

    Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Canonical issue with Divi Extra Theme’ is closed to new replies.