Set background-image parameter at BODY tag

Set background-image parameter at BODY tag

At landing page editor, we can change BODY tag parameters.
But background-image is not supported.
Template editor is same also.
See related issue.
https://community.marketo.com/MarketoDiscussionDetail?id=90650000000Q1QrAAK
5 Comments
Anonymous
Not applicable
Use a token!
Anonymous
Not applicable
@Adam

I think Marketo token can not effect body tag.
Please, teach me your solution using a token.
Justin_Cooperm2
Level 10
We're going to add all the relevant background attributes.
Anonymous
Not applicable
You can use CSS in the head to effect the body tag. You can use a token in the head. 

<style type="text/css">
body{
background-image: url(http://yourcompany.com/images/background-{{my.Background}}.jpg);
}
</style>

Ok. Don't copy & paste that, cause I just typed it free-hand & there are probably some issues with the way I wrote it, but that's the basic premise. I would put in the vast majority of the URL itself into the template header. Then use really simple terms for the token "Background". Like - finance, travel, healthcare

That should work just fine. 

If not you can definitely add a token to use an external css file. Put the entire CSS url into a plain text token & it will be fine.
kh-lschutte
Community Manager
Status changed to: Under review