Hiding the weglot-button

Hi

Is it possible to hide a weglot-button on specific page using css?

Thx.

Luc

1 Like

Hi Luc,
Can you share a public page where the weglot button appears?

https://www.medaman.org/docdetail?recordId=recZbuYLDErD2f39m

Can you try this code, in the custom code header of the page settings?

<style>
.weglot-container.wg-default {
  display: none;
}
</style>

Alternatively (same but in the custom code footer of the page settings)

<script>
window.addEventListener("load", function() {
  var weglotContainer = document.querySelector(".weglot-container.wg-default");
  weglotContainer.style.display = "none";
});
</script>

Thanks for your tip.

I solved it by adding the following after the embed code:

1 Like