Hey @maraltto!
Please inspect the DOM while you are in the customizer and there you will find the CSS classes which are exposed to the DOM elements of the cookie banner. You can use those class names starting with rcb-
. 🙂
@mguenter thanks, but they don’t have any classes – they are all removed due to the adblocker technique you are using! They only have classes like a7bce-ext-0-219 which change every time you load the page…
Hi again!
Please see this screenshot: https://i.imgur.com/qUt6o40.png
Sorry but I don’t understand…
I am not taling abot a button, but also paragraphs for exampe, and these don’t have additional rcb-classes. And the a7bce-ext-0-219 would be a different class next time when viewing the page due to your adblocker technique.
Can you please show in a screenshot which paragraph you mean exactly? Please keep in mind that you need to inspect the DOM elements in the WordPress customizer to get the classnames.
For example this. By the way, when you are in the customizer and access the cookie banner section, only on some pages the banner is displayed. For example, I set up a completely new site with standard 2024 theme and when I go to the customizer and to cookie banner section, the banner is not visible – but on the live page it is.
Ok, I see you want to style the p
but it does not have a class currently. For this case you need to use the first-of-type
CSS selector: https://i.imgur.com/SxHFL9B.png