Title: [Feature Request] CSS classes for Jetpack Subscriptions
Last modified: August 21, 2016

---

# [Feature Request] CSS classes for Jetpack Subscriptions

 *  Resolved [Sridhar Katakam](https://wordpress.org/support/users/srikat/)
 * (@srikat)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/feature-request-css-classes-for-jetpack-subscriptions/)
 * Presently it is very difficult to style the input field and submit button because
   paragraph elements do not have CSS classes.
 * [http://i.imgur.com/kdbGHGZ.png](http://i.imgur.com/kdbGHGZ.png)
 * It would be great if you can add CSS classes for ‘p’ elements inside the generated
   code.
 * [http://wordpress.org/plugins/jetpack/](http://wordpress.org/plugins/jetpack/)

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

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 6 months ago](https://wordpress.org/support/topic/feature-request-css-classes-for-jetpack-subscriptions/#post-4219414)
 * You could target these paragraphs by using the CSS class of the form, like so:
 *     ```
       #subscribe-blog-blog_subscription-5 p {
       /* Your custom rules here */
       }
       ```
   
 * To customize the email input field, you can use the following code:
 *     ```
       #subscribe-blog-blog_subscription-5 input[type=text] {
       /* Your custom rules here */
       }
       ```
   
 * And to style the submit button, try using this code:
 *     ```
       #subscribe-blog-blog_subscription-5 input[type=submit] {
       /* Your custom rules here */
       }
       ```
   
 * Let me know if it helps!
 *  Thread Starter [Sridhar Katakam](https://wordpress.org/support/users/srikat/)
 * (@srikat)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/feature-request-css-classes-for-jetpack-subscriptions/#post-4219417)
 * Thanks for your reply.
 * Have two questions.
 * 1) How would I target just the following:
 * `<p>Join 60 other subscribers</p>`
 * i.e., the second p element.
 * I know can use
 * “#subscribe-blog-blog_subscription-5 p:first-child” for first p element
 * “#subscribe-blog-blog_subscription-5 p:last-child” for last p element
 * “#subscribe-blog-blog_subscription-5 p + p” for 2nd, 3rd and 4th p elements.
 * But what selector can I use to target just the 2nd p element?
 * 2) I would like to wrap the 3rd and 4th p elements housing the input fields so
   I can use ‘margin: 0 auto; display: table;’ to center them horizontally. How 
   can this be done?
 * I am trying to do this: [http://i.imgur.com/Vejt0FI.png](http://i.imgur.com/Vejt0FI.png)(
   screenshot taken after adding inline HTML and styles via Firebug)
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 6 months ago](https://wordpress.org/support/topic/feature-request-css-classes-for-jetpack-subscriptions/#post-4219436)
 * Good point. That is not possible at the moment. I created [a trac ticket](http://plugins.trac.wordpress.org/ticket/2003)
   about this issue, and we’ll consider adding the paragraph IDs in a next Jetpack
   update!
 * Thanks!
 *  Thread Starter [Sridhar Katakam](https://wordpress.org/support/users/srikat/)
 * (@srikat)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/feature-request-css-classes-for-jetpack-subscriptions/#post-4219437)
 * Appreciate it.
 * If you can consider wrapping all the input fields in a div with a class and/or
   ID, that would be helpful too.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 6 months ago](https://wordpress.org/support/topic/feature-request-css-classes-for-jetpack-subscriptions/#post-4219438)
 * > If you can consider wrapping all the input fields in a div with a class and/
   > or ID, that would be helpful too.
 * That’s already the case I believe. You can use the class assigned to the `form`
   element.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 5 months ago](https://wordpress.org/support/topic/feature-request-css-classes-for-jetpack-subscriptions/#post-4219500)
 * We’ve now added IDs to subscriptions widget paragraph tags, per your suggestion.
   [The fix](http://plugins.trac.wordpress.org/changeset/803927/) will be included
   in the next Jetpack release.

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

The topic ‘[Feature Request] CSS classes for Jetpack Subscriptions’ is closed to
new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [css classes](https://wordpress.org/support/topic-tag/css-classes/)

 * 6 replies
 * 2 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/feature-request-css-classes-for-jetpack-subscriptions/#post-4219500)
 * Status: resolved