• Resolved startechmarketing

    (@startechmarketing)


    I am getting this in the backend, on every page how do I disable it?

    /** * Add . */ add_filter( ‘rank_math/frontend/show_keywords’, ‘__return_true’);11596

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @startechmarketing,

    Thank you so much for getting in touch.

    Assuming the code you mentioned below is visually rendering on the page, then it must have been implemented wrongly.

    Please check your theme’s functions.php and look for that code. Or you can check if you have added a rank-math.php file before on your theme directory as well, you can delete the code there or make sure the code is wrapped with.

    The theme directory can be found in public_html > wp-content > themes

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thread Starter startechmarketing

    (@startechmarketing)

    hi, yes it was in the theme file, I wanted that functionality, strange thing is on staging site it does not display, but when i copy to live it displays

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @startechmarketing,

    If the code is appearing in the backend then it means it isn’t inside the PHP tags and is being added as plain text. Please replace the code with the following on your live site:
    <?php /** * Add <meta name="keywords" content="focus keywords">. */ add_filter( 'rank_math/frontend/show_keywords', '__return_true');

    Hope that helps. Let us know if you need any other assistance.

    Thread Starter startechmarketing

    (@startechmarketing)

    oh thanks I am so dumb I just copied code from your examples and did not put it in php .. thanks now it is ok

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @startechmarketing,

    Glad that helped.

    Don’t hesitate to get in touch with us if you have any other questions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘/** * Add . */ add_filter message’ is closed to new replies.