- This topic has 13 replies, 2 voices, and was last updated 6 years, 1 month ago by Leo.
-
AuthorPosts
-
March 15, 2018 at 8:18 am #520748anabella
Hello, I´ve obtained a code for the cookies law through https://cookieconsent.insites.com/ and I put in on GP Hooks > wp_head. It´s working but I´d like to reduce the padding. How can I do it?
March 15, 2018 at 5:17 pm #521106LeoStaffCustomer SupportHi there,
What code are you adding in
wp_head
, please have a look at Tom’s note here:
https://generatepress.com/forums/topic/page-header-not-showing-on-blog-page/#post-520871The padding is defined by the plugin/code itself with this CSS which you can overwrite:
.cc-window.cc-banner { padding: 1em 1.8em; width: 100%; -ms-flex-direction: row; flex-direction: row; }
March 16, 2018 at 1:34 am #521318anabellaHello Leo,
Thanks for your reply. I changed the code from wp-head to before header. However, I´m not sure where to put the CSS that you mentioned. I tried adding it to “additional CSS” but it doesn´t work.
The code that I´m using looks like this:
<link rel=”stylesheet” type=”text/css” href=”//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css” />
<script src=”//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js”></script>
<script>
window.addEventListener(“load”, function(){
window.cookieconsent.initialise({
“palette”: {
“popup”: {
“background”: “#fcfafa”,
“text”: “#9c9c9c”
},
“button”: {
“background”: “#e6e4e4”,
“text”: “#999999”
}
},
“theme”: “classic”,
“content”: {
“message”: “Utilizamos cookies para que tengas la mejor experiencia de navegación. Si sigues navegando entendemos que aceptas nuestra política de cookies”,
“dismiss”: “Acepto”,
“link”: “Leer más”,
“href”: “http://www.mcasensio.es/politica-de-cookies/”
}
})});
</script>March 16, 2018 at 9:07 am #521700LeoStaffCustomer SupportDid you modify the padding number to overwrite the original?
.cc-window.cc-banner { padding: 0 !important; }
March 16, 2018 at 10:09 am #521768anabellaHello Leo. As I mentioned before, I don´t know where to put this CSS anyway. I tried adding it to “aditional CSS” but it doesn´t work. Should I add it to “additional CSS” (somehow)? or inside the GP hook itself? Thanks
March 16, 2018 at 2:18 pm #521959LeoStaffCustomer SupportAdditional CSS should work.
I’m not seeing the pop-up window anymore though.
March 19, 2018 at 3:46 am #523528anabellaHello Leo,
The pop-up window is still there and I tried the CSS that you suggested but it isn´t working: the padding is still the same.
ThanksMarch 19, 2018 at 8:30 am #523751LeoStaffCustomer SupportI’m still not seeing it unfortunately: http://www.screencast.com/t/xGUiaY89x4S
Let me know if I’m missing something here.
March 19, 2018 at 8:37 am #523761anabellaHello Leo, please check it out here https://www.mcasensio.es/contacto/.
Thanks
March 19, 2018 at 12:17 pm #523943LeoStaffCustomer SupportI’m not seeing my CSS being added here: https://generatepress.com/forums/topic/padding-for-cookies-law-pop-up/#post-521700
Any caching plugin?
March 19, 2018 at 12:20 pm #523947anabellaHello Leo,
I´ve just added the CSS again. Please check it https://www.mcasensio.es/contacto/
ThanksMarch 19, 2018 at 6:14 pm #524154LeoStaffCustomer SupportEdited the CSS above: https://generatepress.com/forums/topic/padding-for-cookies-law-pop-up/#post-521700
Give it another shot.
March 20, 2018 at 2:20 am #524329anabellaGreat, it´s working now! 🙂 Thanks Leo
March 20, 2018 at 8:59 am #524625LeoStaffCustomer SupportNo problem!
-
AuthorPosts
- You must be logged in to reply to this topic.