How to avoid to auto add class “rank-math-link” to all links?

#24309
  • Resolved Kee Huang
    Rank Math free

    After the lastest update, all the links are added with the class “rank-math-link” and it break my link appearance. How to remove this class? I don’t want to rollback to older version or change to other plugin

    • This topic was modified 5 years ago by Kee Huang.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Michael Davis
    Rank Math pro

    Hello,

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

    Would you mind sharing a copy of the affected links on the sensitive data section so that we can check this issue further?

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Kee Huang
    Rank Math free

    Hello,

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

    Thank you.

    Kee Huang
    Rank Math free

    Hello,

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

    Thank you.

    Michael Davis
    Rank Math pro

    Hello,

    Thank you for contacting Rank Math today.

    I have raised this problem with our dev team, we are checking this and we will get back to you in a short while.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Kee Huang
    Rank Math free

    Thanks very much. Hope to find the solution soon

    Hi, how is it going now?

    Todd
    Rank Math free

    Hello Kee,

    We are extremely sorry but are you facing any issue due to this?

    It is added to make those link options offered by Rank Math easy to use. It does not cause any issue and you shouldn’t worry about it.

    However, let me know if you are facing any problem due to that class name.

    Hi,
    Because of my theme define the color of the links with this css style:
    div.text a:not([class]) {
    color: #FF3152;
    }

    If RankMath add the class to the link then this definition would be useless, for the meantime I add rankmath class to my custom css:
    a.rank-math-link {
    color: #FF3152;
    }

    But this solution is not well then I hope there is a way to remove the added class…

    Todd
    Rank Math free

    Hi,

    I am sorry but that is not possible. Gutenberg requires that we have some kind of selector to perform operations on elements. If we remove the class, the options like the rel tags, open in an external window will not work in Gutenberg.

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

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

The ticket ‘How to avoid to auto add class “rank-math-link” to all links?’ is closed to new replies.