Homepage Meta Description not changing

#12155
  • Resolved Izaan
    Rank Math free

    Homepage is set as static page, whenever i edit the homepage and sets custom meta description then after updating, it resets the meta to to some theme code(default).

    • This topic was modified 5 years, 3 months ago by Izaan.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

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

    This is very odd, the custom meta description entered should be saved with a higher priority than the auto-generated description.
    Could you please add the following code to your theme’s functions.php file and enter fill the description once more:

    /**
     * Allow changing the meta description sentence from within the theme.
     *
     * @param string $description The description sentence.
     */
    add_filter( 'rank_math/frontend/description', function( $description ) {
            if(is_home()){
            $description = strip_shortcodes($description);
            }
    	return $description;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Izaan
    Rank Math free

    Hey Micheal,

    Thank you for replying.

    I did as you asked, pasted the code in functions.php, and re-filled custom meta for my Homepage but unluckily it didn’t worked, its still showing some of theme codes as meta.

    And one weird thing i noted is that after filling my meta for my homepage and clicking on update it loads a little and redirects me to my list of posts.

    Hi Izaan,

    Thanks for the follow up.

    I can see that the page is served from Litespeed cache, could you please clear you cache and check again.
    If the issue persists, please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Izaan
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Izaan
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi Izaan,

    Thanks for the response.

    I can’t find the credentials on the sensitive data section. Could you add them again?

    We look 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 6 replies - 1 through 6 (of 6 total)

The ticket ‘Homepage Meta Description not changing’ is closed to new replies.