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:
- 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.