CMS Development

cprv
Participante | Parceiro Diamante
Participante | Parceiro Diamante

Using and Customizing Button Module in a Section?

resolver

I am trying to add a default button module to a reusable section template, as well as edit the style parameter to change the button's background color, text color, etc. None of the changes I am making in the style parameter seem to be showing up. Here is my code for the button:

 

{% dnd_row %}
  {% dnd_module "button" path="@hubspot/button" button_text="My button" 
      link={ "url": { "type": "EXTERNAL", "href": "www.google.com", "content_id": null }, "open_in_new_tab": false, "no_follow": false }
         style={ "override_default_style": false, 
            "button_font": { "color": "#FFFFFF", "size_unit": "px" },
            "button_color": { "color": "#FFC0CB", "opacity": 100 },
            "text_hover_color": { "color": "#000000", "opacity": 100 },
            "button_hover_color": { "color": "#CCCCCC", "opacity": 100 } }
  %}
 {% end_dnd_module %}
{% end_dnd_row %}

 

As you can see, most of the style code is the defaults for the button module, but the button color is set to #FFC0CB, which seems to be doing nothing.

 

Any thoughts? 🙂

Thank you!

0 Avaliação positiva
1 Solução aceita
Anton
Solução
Autoridade no assunto | Parceiro
Autoridade no assunto | Parceiro

Using and Customizing Button Module in a Section?

resolver

Hi @cprv

have you tried to set "override_default_style" from false to true?

 

best, 

Anton

Anton Bujanowski Signature

Exibir solução no post original

0 Avaliação positiva
2 Respostas 2
Anton
Solução
Autoridade no assunto | Parceiro
Autoridade no assunto | Parceiro

Using and Customizing Button Module in a Section?

resolver

Hi @cprv

have you tried to set "override_default_style" from false to true?

 

best, 

Anton

Anton Bujanowski Signature
0 Avaliação positiva
cprv
Participante | Parceiro Diamante
Participante | Parceiro Diamante

Using and Customizing Button Module in a Section?

resolver

Ah, thank you! That worked.

 

0 Avaliação positiva