• Resolved tseitan

    (@tseitan)


    Hello,

    I would like to make the cookie banner to be shown in different position in mobile and in desktop mode.

    Specifically, I would like the banner to be shown on top in mobile and at bottom on mobile version.

    Any solution?

    My site is this

    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi @tseitan,

    Thanks for using our plugins.

    You can add the following code snippet to your functions.php and align the position using CSS:

    add_action('moove_gdpr_inline_styles','gdpr_cookie_css_extension',10,3);
    function gdpr_cookie_css_extension( $styles, $primary, $secondary ) {
      ob_start();
      ?>
      @media (max-width: 767px) {
        #moove_gdpr_cookie_info_bar.gdpr_infobar_postion_top {
          top: auto;
          bottom: 0;
        }
        #moove_gdpr_cookie_info_bar.gdpr_infobar_postion_top.moove-gdpr-dark-scheme {
          border-top: 1px solid #fff;
          border-bottom: 0;
        }
        #moove_gdpr_cookie_info_bar.gdpr_infobar_postion_top.moove-gdpr-light-scheme {
          border-top: 1px solid #202020;
          border-bottom: 0;
      }
      }
      <?php
      $styles .= ob_get_clean();
      return $styles;
    }

    I hope this helps.

Viewing 1 replies (of 1 total)

The topic ‘Cookie Banner Settings’ is closed to new replies.