Title: Help with targeting CSS
Last modified: November 11, 2020

---

# Help with targeting CSS

 *  Resolved [eliac7](https://wordpress.org/support/users/eliac7/)
 * (@eliac7)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/help-with-targeting-css/)
 * Hello,
    I am trying to figure out how to target the CSS class for the “es_gdprconsent”
   name ( see here: [https://i.imgur.com/ylO3nq1.png](https://i.imgur.com/ylO3nq1.png)).
   I have tried everything I could, but still, the change doesn’t get through.
 * Any ideas?
 * > [View post on imgur.com](https://imgur.com/npyCv2s)
 * Thanks for your time.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [Kishan Ranawat](https://wordpress.org/support/users/kishanranawat/)
 * (@kishanranawat)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/help-with-targeting-css/#post-13650053)
 * 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](https://wordpress.org/support/users/eliac7/)
 * (@eliac7)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/help-with-targeting-css/#post-13650124)
 * 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 [Kishan Ranawat](https://wordpress.org/support/users/kishanranawat/)
 * (@kishanranawat)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/help-with-targeting-css/#post-13652089)
 * 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 5 years, 7 months ago by [Kishan Ranawat](https://wordpress.org/support/users/kishanranawat/).
      Reason: added 'directly' word to make context more clear
 *  Thread Starter [eliac7](https://wordpress.org/support/users/eliac7/)
 * (@eliac7)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/help-with-targeting-css/#post-13652383)
 * 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 5 years, 7 months ago by [eliac7](https://wordpress.org/support/users/eliac7/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Help with targeting CSS’ is closed to new replies.

 * ![](https://ps.w.org/email-subscribers/assets/icon-256x256.png?rev=2274172)
 * [Email Subscribers & Newsletters - Email Marketing, Post Notifications & Newsletter Plugin for WordPress](https://wordpress.org/plugins/email-subscribers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-subscribers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-subscribers/)
 * [Active Topics](https://wordpress.org/support/plugin/email-subscribers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-subscribers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-subscribers/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [eliac7](https://wordpress.org/support/users/eliac7/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/help-with-targeting-css/#post-13652383)
 * Status: resolved