Support » Plugin: Atomic Blocks - Gutenberg Blocks Collection » AB call to action cannot add css to button

  • Resolved tropicalista

    (@tropicalista)


    I think that should be possible to add css to button on CTA block.

    I’ve tried to convert the block to html and add it manually, however this seems not possible, because gutenberg cannot convert it back to CTA block.

    Would you consider add an input to add css class to button?

    Also, if you have a github project I can make a pr.

    Thanks for your great work

Viewing 1 replies (of 1 total)
  • Plugin Author atomicblocks

    (@atomicblocks)

    Hi there,

    We won’t be able to add a CSS field specifically for the button within the CTA block. You would just need to write your CSS to target the button and apply it via a child theme or add it via the customizer. Try using this CSS selector to style the button:

    .post-content .ab-block-cta .ab-button { // your styles here }

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.