https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
a

average-match-24139

01/22/2024, 2:52 PM
Hi all 👋 I am setting up an A/B Test with the visual editor and wanted to ask for some advice. My task: include a new image element on the page (fairly simple). Where I ran into issues, is when I adjust a section (div) to add the HTML for the image block, the whole section is getting selected and replaced in other language variants. What I would need is a simple “add HTML” option somewhere in the visual editor UI, but from what I could see this is only possible for CSS and JS globally. Does anyone have a suggestion?
b

brief-honey-45610

01/22/2024, 3:55 PM
Hi Laszlo 👋🏻 Yes, you can edit the HTML according to the Visual Editor documentation. Does the "Get in Touch" text and the image share the same <div>?
a

average-match-24139

01/22/2024, 4:05 PM
Here is the screenshot with the breadcrumbs included. Basically after the “UL” section (which is the bulleted list) would be a perfect place, but I can’t select the space after that. I will try including an empty div on the page natively tomorrow, and then I might be able to insert the image HTML without messing with the rest of the code.
r

rhythmic-agent-34208

01/22/2024, 4:19 PM
Hi Laszlo, sounds like a good idea. Keep me posted!
🙏 1
a

average-match-24139

01/23/2024, 2:00 PM
I just wanted to report that the additional DIV did the trick 😎 By adding the HTML for the image within the DIV indicated on the screenshot the translations are getting pulled properly for the rest of the page!
r

rhythmic-agent-34208

01/24/2024, 11:54 PM
Great! Thanks for letting me know.
10 Views