SOLVED

Changing a background color to an image in a guided landing page

Go to solution
Anonymous
Not applicable

Hi,

I'm trying to change the marketo hero background color to an image and want to be able to change the image on the template.

Is this possible?

Can the mktoImg class be defined as a variable then used in the CSS?

I'm trying to declare it:

<meta class="mktoImg" id="hero-bg" mktoName="Hero BG Img" default="#">

But I don't think I'm doing it right:

pastedImage_0.png

If there's a way to do it, could someone provide a tutorial?

cheers,

Marilyn

1 ACCEPTED SOLUTION
Grégoire_Miche2
Level 10

Hi Marylin,

The "MktoImg" only serves to create an editable image element in your LP. YOu cannot use it as a variable.

To do what you want to do, you need to declare a String variable in the header. Something in the line of :

<meta class="mktoString" id="hero-bg" mktoName="Background Image URL" default="Set here a default image" allowHtml="false">

-Greg

View solution in original post

1 REPLY 1
Grégoire_Miche2
Level 10

Hi Marylin,

The "MktoImg" only serves to create an editable image element in your LP. YOu cannot use it as a variable.

To do what you want to do, you need to declare a String variable in the header. Something in the line of :

<meta class="mktoString" id="hero-bg" mktoName="Background Image URL" default="Set here a default image" allowHtml="false">

-Greg