• Resolved maraltto

    (@maraltto)


    Hi,

    please let me know how to add custom css in order to remove or style some of the elements – I know there is the custom css section in the customizer under the Cookie Banner section, but since you are removing all class names for adblockers I don’t understand how to address a specific selector.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Matthias Günter

    (@mguenter)

    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-. 🙂

    Thread Starter maraltto

    (@maraltto)

    @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…

    Plugin Contributor Matthias Günter

    (@mguenter)

    Hi again!

    Please see this screenshot: https://i.imgur.com/qUt6o40.png

    Thread Starter maraltto

    (@maraltto)

    Sorry but I don’t understand…

    Thread Starter maraltto

    (@maraltto)

    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.

    Plugin Contributor Matthias Günter

    (@mguenter)

    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.

    Thread Starter maraltto

    (@maraltto)

    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.

    Plugin Contributor Matthias Günter

    (@mguenter)

    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

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘CSS’ is closed to new replies.