Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1175129

    Hi,

    is there a way to open the link for cookie button additionnal info in a new browser window ?

    https://image.noelshack.com/fichiers/2020/03/4/1579187594-capture-d-ecran-2020-01-16-a-16-08-58.png

    Best regards,

    Stan

    #1175853

    Hey sdesign-web,
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    function cookie_consent_new_window(){
      ?>
      <script>  
    (function($){
     $(document).ready(function(){
      $('a.avia-cookie-consent-button-2').attr('target', '_blank');
     });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'cookie_consent_new_window');

    If this doesn’t help please include the url to your site so we can take a closer look at your sectors.

    Best regards,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.