Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor kishanranawat

    (@kishanranawat)

    Hi there,

    We need a little bit of your help in understanding your queries thoroughly.

    Can you let us know which HTML element you want to target with CSS? Is it the GDPR label element or the checkbox element or the paragraph element enclosing the GDPR section?

    Thread Starter eliac7

    (@eliac7)

    Thanks for your reply. I would like to target the GDPR text (next to the checkbox). I want to change the font-family and color.

    Plugin Contributor kishanranawat

    (@kishanranawat)

    Hi there,

    Thanks for letting us know more about the requirements.

    Currently, there isn’t any specific id or class available to target the GDPR label element directly but you can target it using the GDPR checkbox element like below

    .es_subscription_form input[name="es_gdpr_consent"] + label {
     color: #000;
    }

    The above CSS selector means target any label element who is the next sibling of the GDPR checkbox element.

    Hope this helps you. Let us know if you have any further queries.

    • This reply was modified 3 years, 5 months ago by kishanranawat. Reason: added 'directly' word to make context more clear
    Thread Starter eliac7

    (@eliac7)

    Thanks a lot for the reply and the solution. At first, it didn’t work, but then I figured out that I had to target the “a” too, so here is my code is anyone is struggling with it too:

    .es_subscription_form input[name="es_gdpr_consent"] + label >a {*/enter css code */};

    Thanks again!

    • This reply was modified 3 years, 5 months ago by eliac7.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Help with targeting CSS’ is closed to new replies.