Custom meta title / description page link

#637565
  • Resolved Craig Blackman
    Rank Math free

    Im using wordpress and i have a page which is a link currently Rank math is generating a generic meta title and description i have one hard coded onto the page in the head

    <meta charset=”UTF-8″>
    <meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
    <meta name=”robots” content=”index, follow”>
    <title>Web Design Blog | Web Design News | Website Design Blog</title>
    <meta name=”description” content=”This is your meta description. It provides a brief summary of your web page’s content.”>

    But i cant get it to overwrite the rank math one, is there any code i can out on this or in functions php which will make this the default one for this page or for rank math to ignore this page

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    In this case, you can use and customize this filter to disable Rank Math’s meta tags on a specific page:

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

    The filter above disables Rank Math on your homepage only. You can target your specific page by using the post id as well.

    If you’re unsure how to add this code, you can follow this guide:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps.

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

The ticket ‘Custom meta title / description page link’ is closed to new replies.