Add custom styles to your button CTA
Last updated: January 18, 2023
Use HubSpot’s advanced options for CTAs to create highly customized CTA buttons that fit perfectly with your website theme. You can use a custom CSS class to support custom class inputs from your stylesheet or add custom CSS directly to the button CTA.
To further customize your button CTA, learn how to edit your CTA size. If you're adding your button CTA to an email or template, learn how to center your CTA.
Please note: custom styles can only be applied to custom buttons and not image buttons.
To add a custom style to your button CTA:
- In your HubSpot account, navigate to Marketing > Lead Capture > Button CTAs.
- Hover over a button CTA and click Actions > Edit, or click Create CTA.
-
In the right panel, scroll down and click Advanced options.
- You can apply custom CSS styling to your button CTA using only either the Custom CSS class or the Custom CSS option. If both options are applied, it may result in issues with your button CTA styling or display.
- Custom CSS Class: add a custom class to your button CTA to support custom class inputs. This is useful when multiple CTAs across your website pages need to share a similar set of design characteristics, such as font families, sizing, or even padding and margins. If you use a custom CSS class, ensure that the class is included and styled in the CSS stylesheet applied as the main style for your HubSpot pages.
- Custom CSS: add custom styles to apply to the button CTA you are editing only. In the Custom CSS field, you can apply inline styling specific to that button CTA. If you have an element of the button CTA you would like to change, add a new style declaration here before saving your changes.
- At the bottom right, click Next > to finish creating or editing your button CTA.

Thank you for your feedback, it means a lot to us.
Related content
-
Export your content and data
Learn how to export HubSpot content and data from your account, such as pages, contacts, and files. Please...
Knowledge Base -
Partition your HubSpot assets
Assets across HubSpot can be partitioned so that only the right teams and users can view and edit them. This...
Knowledge Base -
Button calls-to-action (CTAs) | Frequently Asked Questions
Find answers and general information quickly about button calls-to-action (CTAs) in HubSpot. How do I link my...
Knowledge Base