How to Remove Default HubSpot CTA Styles

Get a Free HubSpot CMS Guide
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');


Related resources

  • HubSpot CMS vs WordPress: Feature Comparison and Review
  • 25+ Questions to Ask Before Redesigning Your Business Website
  • 5 Things A Business Should Consider Before a Website Redesign
  • How to Get a Responsive Website for Your Manufacturing Company
  • What Is a Good WordPress Alternative for Businesses?
  • Tags: , ,

    Want to Get Email Updates of New Posts? Join My Email Newsletter