Button CSS

I want to link a modal popup when i click on a button.
But i can’t find the css tab when i’m editing the button.

How can i put the css code in?

Hello there,

When editing a button and you’d like to apply custom CSS to the button, you first will need to create a class for the button.

If you are using Cornerstone, you may do this by clicking the button going to customize (at the top under inspector) and then by entering the name of your custom class i.e. testbtn like shown :

If you aren’t using Cornerstone, you will need to input a class by embedding class=“testbtn” into your shortcode.

Once you have entered a class, you can then apply CSS to it via Customize --> Custom --> CSS.

If you were then looking to change the button’s background color for example, you’d apply the custom CSS like follows:

.testbtn{
  background: red;
}

I hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.