Reporting a bug

#68998
  • Resolved Ahmed Elgameel
    Rank Math free

    Hi there,

    Whenever I edit a link that already has a CSS class e.g. btn, RankMath removes the existing class and adds its rank-math-link class only.

    This is very annoying as I have to manually add the class each time I edit the link!

    I hope you fix this problem asap

Viewing 5 replies - 1 through 5 (of 5 total)
  • Alberto
    Rank Math business

    Hello,

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

    Could you give us more details so we can replicate the issue? On which version does it happens? On which WordPress version? Does it happen in all places or only in posts or pages? Any extra detail can help us to fix it as soon as possible.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    I use the latest versions (WP & RM) and it happened with me in the new WP block editor.

    To replicate the issue:

    1. Add a link in the editor, switch the block to HTML view, add a class to the a tag e.g. <a href="https://example.com" class="btn">Visit</a>.
    2. Switch the block back to visual view, now edit the link on the fly and change anything (URL, nofollow, open in new window) and save.
    3. Now, the existing class btn will be removed and the link will look like this <a href="https://example.com" target="_blank" class="rank-math-link">Visit</a>.

    Simply, add a CSS class to any link and edit the existing link, you’ll find that all existing classes added by you are removed and replaced with this class rank-math-link.

    Alberto
    Rank Math business

    Hello,

    Thank you so much for this information. I have tested it by myself but even having Rank Math disabled, the issue still happens, as you can see in the following screencast: https://i.rankmath.com/wtZycO

    So it seems you didn’t found a Rank Math bug but a WordPress bug.

    Looking forward to help you.

    Hi Alberto,

    I see.

    I’ve just reported the bug to WordPress and included your video as well.

    https://core.trac.wordpress.org/ticket/50652

    Thanks

    Alberto
    Rank Math business

    Hello Ahmed,

    We are super happy that this helped you (and thank you for reporting it). 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.

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

You must be logged in to reply to this ticket.