Okay
  Public Ticket #2175580
Hyperlink doesn't automatically add class="link"
Closed

Comments

  • Kit Cheung started the conversation

    Hi There,

    Whenever I try to add a hyperlink to the text, it doesn't add the class="link" to it automatically, hence, the link will not have the animation.

    Please refer to the photo. Above the added class="link" and below is without it.

    Could you please fix this to let it automatically apply whenever we hyperlink a text?

    Thanks,
    Kit

  •  1,825
    Support replied

    Hi Kit,

    how to you add the link? manually? if yes, it's easy to add the class inside the <a> tag.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Kit Cheung replied

    Hi There,

    I simply use the hyperlink button in editor. Please see the screen cap. It is quite inconvenient to edit html whenever a new portfolio to be posted.

    Hope you can fix it for us.

    Thanks,
    Kit 

  •  1,825
    Support replied

    Hi Kit, I'm not sure how we can do that unless we create a custom Gutenberg block.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Kit Cheung replied

    Hi Support,

    Is there a way to auto apply class="link" to add the <a> in this theme? Like to use php in somewhere?

    I am not good in php. Hope this idea could enable some more thoughts?

    Thanks,
    Kit

  •  1,825
    Support replied

    Hi Kit, I think best is to create custom gutenberg block you can follow the code (and add the code there) in wp-content\plugins\hervin-gutenberg-blocks\blocks\blocks.js

    that's the best solution I can think of

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy