hi
@Adebayo A. (Replo Expert)! did you find a solution here?
i think steve's initial hunch is right — weglot doesnt run on elements that are hidden upon initial page load and this seems to be a problem with other page builders (ie framer).
i played around with some workarounds here and i think there are two ways around this:
1.
use the theme's faq section (like you mentioned): i know this isnt ideal, but this method is probably the most manageable and easy to maintain in the long term. however, if you're really keen on making something custom with replo, you can try this:
2.
building a custom accordion using containers, states, and interactions: basically, instead of using our accordion component, the question and answer are stored in a container. in its "collapsed" state, you set a fixed height on the container to hide the answer. when its "expanded", set the height to hug contents. and then use interactions to trigger these states. again, not very easy to manage but you'll be able to get a custom design in replo and weglot will run on all the content.
a.
some limitations with this method: 1) other collapsibles won't collapse when you open another one and 2) the collapsible will open up and downward instead of just downward, like a traditional accordion.
i've set up a
test one in your workspace here so you can take a look at how its set up. or you can take a look at the
live page to see how weglot works
there is another change we
might be able to do on our side to the base component that would render it server-side, but will wait on our product team to review this first. i submitted a feature request here to track the progress of it:
https://feedback.replo.app/p/update-accordioncollapsible-component-to-render-server-side