How do I use the Divi SEO settings for the homepage while running Rank Math?

#574255
  • Resolved Inspector Designs
    Rank Math free

    I want to keep the standard Divi SEO settings for just the home page. On Divi I can add as many targeted keywords as I want. Is there a way to keep the home page SEO in Divi remain while running Rank Math? I know how to change the Title, Meta Description, and Keywords in your plugin, but I want to use Divi’s built-in function for the home page. I love the Divi SEO core settings for the homepage and want to utilize them with Rank Math’s secondary page focus and its other powerful tools.

    I have been researching and attempting to figure this out for a while now. I researched your website and contacted Elegant Themes (Divi creators). They don’t know a way and told me to contact you guys. Thank you for your time,

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    Could you please confirm if you wanted to remove Rank Math’s metadata on your homepage so you can use Divi for it?

    If so, then you can add this filter to your site:

    add_action( 'wp_head', function(){
    if( is_home() ){
    remove_all_actions( 'rank_math/head' );
    }}, 1 );
    

    And here’s a guide to adding the filter to your website:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Please note that the filter will remove all of the Rank Math data on your homepage.

    Let us know how this goes.

    Thank you.

    Hello,

    I want to be able to utilize Divi’s core “Homepage Custom Title”, “Homepage Meta Description”, and “Homepage Meta Keywords”. These are all found under Divi’s settings, under the “SEO” tab.

    Hi there,

    We understand that you want to keep the Meta Data settings from Divi for your homepage and not use RankMath’s. To do that, you need to follow the steps that my colleague explained before.

    You need to copy and paste this code snippet into your site:

    add_action( 'wp_head', function(){
    if( is_home() ){
    remove_all_actions( 'rank_math/head' );
    }}, 1 );

    This code will remove RankMath’s metadata from your homepage only. If you’re not sure how to add this code to your site, you can check out this guide: https://rankmath.com/kb/wordpress-hooks-actions-filters

    Please let us know if this works for you or if you have any other questions or concerns. We’re always here to help. Thank you.

    Perfect. Thank you!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    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 5 replies - 1 through 5 (of 5 total)

The ticket ‘How do I use the Divi SEO settings for the homepage while running Rank Math?’ is closed to new replies.