• Resolved mjnswp

    (@mjnswp)


    Hey, any chance we can copy the BannerPresets.php to our theme folder and thus overriding it? I would like to set the default color values to some css variables, so I don’t have to visit the customizer and change the color to my clients CI on every single project.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author devowl.io GmbH

    (@devowl)

    Hi @mjnswp,

    Thank you for your inquiry. Copying the BannerPresets.php file is neither possible nor necessary to solve your problem.

    Just go to Cookies > Import / Export in your WordPress backend. There you can enable only “Cookie banner customization” when exporting, which will export only the customizations of the cookie banner in the customizer. On your new website, you can import the settings in the same place with just two clicks.

    I hope this solves the problem for you!

    Best regards,

    Jan

    Thread Starter mjnswp

    (@mjnswp)

    Hey,
    thanks for the quick reply.

    Sadly that wouldn’t solve my problem. For example I would like the default button color to be var(–maincolor) from my child-theme css file. Exporting and importing settings wouldn’t help, since that variable ofcourse changes from customer to customer.

    It’s kinda hard targeting the banner elements with css, because they mostly don’t have any classes or ids.

    Plugin Contributor Matthias Günter

    (@mguenter)

    Hi @mjnswp !

    Unfortunately, our customizer implementation does not work with CSS Variables as the WordPress customizer also does not support this out-of-the-box.

    It’s kinda hard targeting the banner elements with css, because they mostly don’t have any classes or ids.

    Unfortunately, Custom CSS is currently the only solution for this. You can enable class names in Customizer > Cookie Banner > Custom CSS.

    Thread Starter mjnswp

    (@mjnswp)

    Oh enabling the class names solves the Problem for me, didn’t know that was possible. Thanks a lot!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Override BannerPresets.php’ is closed to new replies.