How to Remove Default HubSpot CTA Styles


How to Remove Default HubSpot CTA Styles

HubSpot allows marketers to create custom styled CTA buttons. This can be a problem if you have a large team who may not know how to follow brand guidelines. This creative freedom can make buttons look inconsistent across your website. You could educate all of your users to never create custom styles. Or you could add this code to your theme or template to strip out any inline styles overriding your default button styles.

$( window ).load(function() {
$('.hs_cos_wrapper_type_cta .btn').removeAttr('id');
});

 


Written by: Jake Lett
Jake Lett is a B2B marketing consultant with over 15 years of experience in the digital marketing industry. He specializes in SEO, HubSpot, and PPC campaign management. Jake has a proven track record of helping businesses increase their online visibility and drive more traffic, leads and sales. He is a Certified Google Ads Specialist and a Certified HubSpot Developer.

Related posts

Tags: , ,

Want to Get Email Updates of New Articles?

Join My Email Newsletter