Custom CSS for creatives | XM Community
Skip to main content
Question

Custom CSS for creatives

  • May 19, 2023
  • 6 replies
  • 540 views

Forum|alt.badge.img+2

I would like to use custom CSS to style creatives such as the popover and responsive dialog creative. I can apply custom CSS to surveys but I’m not finding a way to do with for creatives. Any advice?

6 replies

Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • May 19, 2023

@jodiholbrook 

There is a new feature Add JavaScript, that let’s you do customizations on it. 

You can view this support page. It’s not available to all, hence, talk to your account executive to get it enabled. It depends on license and is paid I believe.

Hope it helps!


Forum|alt.badge.img+2

@Deepak 

So are you saying that we would need to put the CSS in a Javascript function to run it?


Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • May 19, 2023

@Deepak

So are you saying that we would need to put the CSS in a Javascript function to run it?

 

Yes!

This should help HTML DOM Element style Property (w3schools.com).

 


ArunDubey
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+41
  • QPN Level 8 ●●●●●●●●
  • May 20, 2023

Refer below jquery syntax for the.

 

jQuery("#id").css({"property1":"value1","property2":"value2"});


Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • May 21, 2023

FYI jQuery is not accepted in website app feedback.

You need to write it in DOM element.

Hope it helps!


ArunDubey
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+41
  • QPN Level 8 ●●●●●●●●
  • May 21, 2023

@Deepak can we apply jQuery in target survey and I think it should work when intercept will popup. I haven't done this before but I think it should work.