Why every time I create a button I get the .rte a style?

Hello,

Every time I create a button in my theme it generates it as a link and the primary style it uses is the .rte a (rich text link style I believe).

What can I do for a specific button not to get this style?

I’m using a Lorenza theme, so the classes and index are not like other Shopify Themes.

My draft store is: https://7kzgc43eek1fueff-51967000773.shopifypreview.com

For example, if you navigate to /pages/faqs you’ll find a button that is being overridden by the .rte a class instead of the bttn classes in my index.css file.

Any ideas?

Hi Jaba,

You have two options to do this

  1. Remove the
    wherever you place your button but this will affect other tags that use rte

or

  1. Override the global .rte a variables by using !important for your own custom styling

Hope it helps

Regards,

Martin

1 Like

Thanks Martin.

Indeed changing the rte class to the div will affect the whole text. I’m going to try the !important and see how it goes.

Thanks!