Artigos sobre: Editor de Páginas

Como trocar o IDIOMA do botão de AVISO DE COOKIES

Para trocar o idioma do botão de aviso de cookies para inglês, siga o passo a passo abaixo:

Acesse o editor de páginas;



Clique no ícone de engrenagem que fica no canto superior direito da tela;



Em seguida, clique em "Javascript & CSS";



Clique para "Adicionar" um novo código;



Escolha um nome para seu código, selecione a opção "Funcionamento" e adicione no campo de texto todo o código abaixo;

<script>
  setTimeout(() => {
    $('#gpc-lgpd_botoes-configurar').html('Set Up');
    $('#gpc-lgpd_botoes-confirmar').html('Understood and accepted');
},400);
$('body').on('click','#gpc-lgpd_botoes-configurar',function(){
setTimeout(() => {
  $('.gpc_modal_lgpd-titulo-titulo').html('Cookie Settings');
  $('.gpc_modal_lgpd-titulo-texto').html('You can choose which cookies to accept');
  $('#gpc_modal_lgpd-confirmar').html('Confirm settings');
  $('.gpc_modal_lgpd-opcoes').each(function(i, atual){
     if(i==0){
         $(atual).find('.gpc_modal_lgpd-opcoes-titulo').html('Mandatory cookies');
         $(atual).find('.gpc_modal_lgpd-opcoes-aviso').html('Always active');
         $(atual).find('.gpc_modal_lgpd-opcoes-texto').html('They are cookies to ensure the proper functioning of the website.');
}
if(i==1){
    $(atual).find('.gpc_modal_lgpd-opcoes-titulo').html('Statistics cookies');
    $(atual).find('.gpc_modal_lgpd-opcoes-texto').html('They are used to collect information to display specific content to a particular browser when creating different target groups.');
}
if(i==2){
    $(atual).find('.gpc_modal_lgpd-opcoes-titulo').html('Marketing cookies');
    $(atual).find('.gpc_modal_lgpd-opcoes-texto').html('They are used to collect information to display advertising or specific content to a particular browser by creating different target groups.');
         }
      });
   }, 400);
  });
</script>


Em seguida clique em "Salvar"!

Este código troca apenas o idioma do botão de uso de cookies. Não altera nenhum outro texto da página.

Ficou com alguma dúvida? Chame nossa equipe no Chat! Estamos sempre prontos para ajudar.

Atualizado em: 21/12/2022

Este artigo foi útil?

Compartilhe seu feedback

Cancelar

Obrigado!