Please add body classes
-
Hi,
We’re using your plugin on our agency site. It’s working great and thanks for the development.
Right now if the cookie alert is visible, it displays over the footer (probably for most sites) which takes away from the design of the page. We’ve been able to over-ride this with the following JS:
// Add padding to bottom of window if cookie alert is showing if ( $b('#moove_gdpr_cookie_info_bar').length) { setTimeout(function(){ if ( $b('#moove_gdpr_cookie_info_bar').hasClass('moove-gdpr-info-bar-hidden') ) { } else { var addToBottom = $b('#moove_gdpr_cookie_info_bar').outerHeight(); $b('body').css('paddingBottom', addToBottom + 'px'); } }, 1000); }I guess this would be a feature request, but could you add a body class if the cookie alert is hidden; the user has accepted all? This way we could avoid the JS fix and just CSS it out so that nothing on the page is ever hidden with the cookie alert visible.
Thanks!
The page I need help with: [log in to see the link]
The topic ‘Please add body classes’ is closed to new replies.