RTP Rich Media Recommendations - API Options - ?! | Community
Skip to main content
Luke_Wotton
Level 4
August 17, 2016
Question

RTP Rich Media Recommendations - API Options - ?!

  • August 17, 2016
  • 3 replies
  • 1854 views

In the Rich Media Recommendations API it says you can change the font-size of the title with the following

"rcmd.title.font.size" : "26px"

It says nothing about changing any of the other size of fonts on the description section or the CTA.

Also, it says nothing about changing the font size of the title of each resource it pulls.

Seriously?

3 replies

Lucho_Soto
Level 5
September 15, 2016

@Luke Wotton​ I agree that the customization options are currently very limited. I think it would be great to be able to customize any part of the CSS like we do on Forms 2.0.

I created an idea here, feel free to vote on it

Dory_Viscoglio
Level 10
September 15, 2016

If anyone knows the answer to this, it'll be Yanir Calisar

October 5, 2016

@Luke Wotton​

Unfortunately there's no native way to do it. I also voted for the idea @Lucho Soto​ submitted.

Good news is that you can use the code snippet examples I created to customize this text:

<style>

/* recommendation title */

.RTP_RCMD2 [data-rtp-id="rtp_rcmd2_tpl_1"] .rtp_rcmd2_label h4{

  font-size: 30px;

}

/* recommendation description */

.rtp_rcmd2_description p{

          font-size: 10px;

}

/* recommendation CTA */

a.rtp_rcmd2_link{

          font-size: 10px;

}

</style>

Lucho_Soto
Level 5
October 5, 2016

Thanks Yanir Calisar​ . @Luke Wotton​ it looks like Yanir's approach will work best. Our developer has been able to edit pretty much every aspect of the Rich Media CSS with this so hopefully it will help you as well.