I have created a CTA in WordPress where the HTML looks like,
<p>
<a class="cta" href="...">CTA Button</a>
</p>
Further, I've styled the class cta. But now, the CSS is not looking great whenever the text wraps. Only now, I'm realizing that for a better looking CTA the CSS class should have been used in the <p> and not in the <a> tag.
Since I've followed this huge number of elements, changing them manually is nearly impossible. I'm sure this can also be achieved using JS, but I'm using AMP which makes such implementation really difficult.
Hence, I'd like to if this can be achieved using PHP or CSS?
source https://stackoverflow.com/questions/68120513/fixing-css-classes-with-php
Comments
Post a Comment