Re: Change form button color in form, not landing page?

Anonymous
Not applicable
Is there a way to change the submit button color in the form itself so I don't need to add code to each new landing page? I've read this article https://community.marketo.com/MarketoArticle?id=kA050000000KysI&src=comm but thought there should be a way to change the default button on all forms instead of having to edit on each landing page.
Tags (1)
2 REPLIES 2
Alok_Ramsisaria
Level 10

Hi Alisa

As mentioned in the article shared by you, you will have to add CSS of your 'Submit' button in start fancy button code shared on the page.

Replace this:

div.buttonSubmit input, div.buttonSubmit span {

background-image:url(imageURL);

With:

div.buttonSubmit input, div.buttonSubmit span {

background-color:#121212;

After this, all the landing pages using this template will have the submit button of the color, mentioned in the code by you.

Anonymous
Not applicable
Hi Alisa,

I believe adding the code that changes the form button color in the landing page template HTML should do the trick.