Remove Comments in Code

#873927
  • Resolved Fabian Suter
    Rank Math free

    Hi Support

    Is it somehow possible to remove the comments in the code on the front? for example

    <!– Search Engine Optimization by Rank Math – https://rankmath.com/ –>

    Or

    <!– /Rank Math WordPress SEO plugin –>

    I don’t like to have that all the plugins makes those comments…

    Best
    Fabian

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

    We apologize for the issue you are facing regarding the comments added by plugins like Rank Math. Unfortunately, the context provided does not contain specific instructions on how to remove those comments from the front end of your website.

    However, you can try adding a filter to your theme’s functions.php file to remove such comments. If you need further assistance with this, we recommend replying to this ticket, and a human agent from the Rank Math Support team will be able to assist you further.

    Thank you for raising this concern!

    Hello,

    You can use the following filter on your website to remove the plugin credit notice from your page source:

    add_filter( 'rank_math/frontend/remove_credit_notice', '__return_true' );
    

    Here is a guide you can follow to add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Looking forward to helping you.

    Thanks this works 🙂

    Hello,

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

    If you don’t mind us 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.

Viewing 4 replies - 1 through 4 (of 4 total)

The ticket ‘Remove Comments in Code’ is closed to new replies.