Title: Hide fields CSS doesn&#8217;t work
Last modified: December 13, 2022

---

# Hide fields CSS doesn’t work

 *  Resolved [biggersem](https://wordpress.org/support/users/biggersem/)
 * (@biggersem)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/hide-fields-css-doesnt-work/)
 * Hello,
    just tried your hide fields CSS and fields still show
 * I tried these:
    .slicewp-field-wrapper[data-type=”email”] { display: none; } .
   slicewp-field-wrapper[data-type=”url”] { display: none; } .slicewp-field-wrapper[
   data-type=”textarea”] { display: none; }
 * also these:
    .slicewp-field-wrapper[data-type=”email”] { display: none!important;}.
   slicewp-field-wrapper[data-type=”url”] { display: none!important; } .slicewp-
   field-wrapper[data-type=”textarea”] { display: none!important; }
 * Do you have an ideas what I do wrong?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhide-fields-css-doesnt-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [iova.mihai](https://wordpress.org/support/users/iovamihai/)
 * (@iovamihai)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/hide-fields-css-doesnt-work/#post-16288685)
 * Hey [@biggersem](https://wordpress.org/support/users/biggersem/),
 * Thank you for reaching out! From what I see, the issue is tied to the double 
   quotes used in the code.
 * The ones you’ve used are slightly inclined, while the ones needed to run the 
   code are straight. It’s a subtle difference, but it does break the code unfortunately.
 * Nevertheless, here’s the updated code that should work:
 *     ```
       .slicewp-field-wrapper[data-type="email"] { display: none; }
       .slicewp-field-wrapper[data-type="url"] { display: none; }
       .slicewp-field-wrapper[data-type="textarea"] { display: none; }
       ```
   
 * Please try it out and let me know how it goes.
 * Thank you and best wishes,
    Mihai
    -  This reply was modified 3 years, 5 months ago by [iova.mihai](https://wordpress.org/support/users/iovamihai/).
 *  Thread Starter [biggersem](https://wordpress.org/support/users/biggersem/)
 * (@biggersem)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/hide-fields-css-doesnt-work/#post-16290627)
 * Hi Mahai,
    That was the trick. Thank you.
 * Btw, I have found out that code
 * `.slicewp-field-wrapper[data-type="email"] { display: none; }`
 * hides user email and also payment email wrapper.
 * I just need hide the payment email wrapper. What do I have to change in that 
   code?
 * Thank you,
    Lukas
 *  Plugin Author [iova.mihai](https://wordpress.org/support/users/iovamihai/)
 * (@iovamihai)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/hide-fields-css-doesnt-work/#post-16291928)
 * Hey [@biggersem](https://wordpress.org/support/users/biggersem/),
 * Yes, that’s true. That particular line of code will hide all email type fields.
 * If you’re using our default affiliate registration form, then I’d recommend adding
   this line of CSS code:
 * `#slicewp-affiliate-register-form > div:nth-child(7) { display: none; }`
 * The code will hide the seventh field, which is the “Payment Email” for the default
   registration form.
 * Please try it out and let me know how it goes.
 * Best wishes,
    Mihai

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

The topic ‘Hide fields CSS doesn’t work’ is closed to new replies.

 * ![](https://ps.w.org/slicewp/assets/icon-256x256.png?rev=2432848)
 * [Affiliate Program Suite — SliceWP Affiliates](https://wordpress.org/plugins/slicewp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slicewp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slicewp/)
 * [Active Topics](https://wordpress.org/support/plugin/slicewp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slicewp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slicewp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [iova.mihai](https://wordpress.org/support/users/iovamihai/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/hide-fields-css-doesnt-work/#post-16291928)
 * Status: resolved