Jeff Hannes
Jeff Hannes

Reputation: 96

Bigcommerce Stencil Banners

I've created a banner using the Marketing -> Banners control panel, and I entered HTML directly into the content field. In the control panel, everything looks fine... images within an tag are rendering, so clearly it's reading the HTML properly.

However, when I load the page, all of my HTML tags have been converted to > and < code, so the HTML from the banner doesn't render at all. Furthermore, the entire banner code is wrapped in a

tag that I did not create.

What can I do to fix this?

Upvotes: 1

Views: 581

Answers (2)

thannes
thannes

Reputation: 778

I was messing around with this, and figured out it displays the HTML correctly when wrapped in 3 handlebars brackets.

{{{banners.top}}}

The docs mention escaping HTML here in the snippet area using triple brackets, but it is not mentioned this is needed for the Marketing Banners.

Upvotes: 1

rjfrizz
rjfrizz

Reputation: 83

Just to confirm that you are using the 'html' editor to enter your code. Correct? Here's a screenshot: http://prntscr.com/bk0xnp

Upvotes: 0

Related Questions