Apply preset button in content area modal

Hello,

I’d like to add a button styled in the way of one of my saved presets in a content area modal. I was able to add a shortcode to the area, but I don’t master CSS enough to replicate my regular preset.

Can you help? Thank you!

Hello @tats86,

Thanks for writing in!

Please be advised that the button present cannot be applied to applied to the content area modal toggle button. You will have to style the toggle button instead by copying the button element settings manually. Please click the content area modal element and find the Toggle tab. This is where you can style to toggle button.

You will have to change the width, height, padding, margins, border-radius and other toggle button properties to make it look like an ordinary button. You can even disable the graphic setup and enable the text setup.

We would love to know if this has worked for you. Thank you.

Actually, I’d like to add a button in the actual “content” area, where the HTML text is located. I was able to style the toggle button fine. You can see a public preview of the page here: https://aimetamarque.com/?page_id=8492&preview=1&_ppp=cc0736dc28

Hello @tats86,

If you are referring to the custom HTML that you have added in the content area then the button is using the default button styling. You can style the button globally in X > Theme Options > Button.

And if you want to apply a button preset, then you will have to convert your custom HTML code in the content area as a global block. Go to X > Global Block. Create a block the resembles the content. Of course, the content must be broken down into sections, rows, columns, text elements, and a button element. In the button element, this is where you can apply the button preset.

Once you are done, you can make use of the global block shortcode and insert it into your content area element. To learn more about the Global Block, please check this out:

Hope this makes sense.

Global blocks! Perfect solution, thank you! :grinning:

You’re welcome!
We’re glad we were able to help you out.

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