• Resolved davidver

    (@davidver)


    I would like to reposition the cookie bar on mobile devices e.g. with a bottom of 60px. Is it possible to do so? I have tried:

    @media only screen and (max-width: 600px) {
    div.moove-gdpr-align-center.moove-gdpr-dark-scheme.gdpr_infobar_postion_bottom {
    bottom: 60px !important;
    }
    }

    But I probably have to do something in the functions.php

    • This topic was modified 4 years, 5 months ago by davidver.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi @davidver,

    Thanks for using our plugins.

    You can try the following code snippet (should be added to functions.php):

    add_action('moove_gdpr_inline_styles','gdpr_cookie_css_extension',10,3);
    function gdpr_cookie_css_extension( $styles, $primary, $secondary ) {
    
      $styles .= '@media (max-width: 600px) {
    		#moove_gdpr_cookie_info_bar.gdpr_infobar_postion_bottom {
    			bottom: 60px;
    			border-top: 0;
    		}
    		#moove_gdpr_cookie_info_bar.moove-gdpr-info-bar-hidden {
    			bottom: -400px;
    		}
    	}';
      return $styles;
    }

    Hope this helps.

    Thread Starter davidver

    (@davidver)

    Works perfectly! Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Position cookie bar’ is closed to new replies.