Title: Multiple Forms / Different Styles
Last modified: August 21, 2016

---

# Multiple Forms / Different Styles

 *  Resolved [whuggett](https://wordpress.org/support/users/whuggett/)
 * (@whuggett)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/multiple-forms-different-styles/)
 * I have created two forms, both result in a web-to-lead action. The second form
   I would like styled differently than the first, as it is going in a different
   position on the website.
 * Is there a Class attribute that can be added to the short code? for example:
 * `<?php echo do_shortcode( '[salesforce form="2" class="alternate"]' ) ?>`
 * [https://wordpress.org/plugins/salesforce-wordpress-to-lead/](https://wordpress.org/plugins/salesforce-wordpress-to-lead/)

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

 *  Plugin Author [Nick Ciske](https://wordpress.org/support/users/nickciske/)
 * (@nickciske)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/multiple-forms-different-styles/#post-4816379)
 * Not at present, but each form has a class based on its form ID. Just look at 
   the code generated and you’ll find your answer.
 *  Thread Starter [whuggett](https://wordpress.org/support/users/whuggett/)
 * (@whuggett)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/multiple-forms-different-styles/#post-4816664)
 * When I look at the published code it looks like a class is set for “.salesforce_w2l_lead_1”.
   I assume this is the styling for Form ID 1?
 * In the CSS can I create others like “.salesforce_w2l_lead_#” depending on the
   Form ID # I want to style?
 * I tried adding the _1 to the existing “.salesforce_w2l_lead” in my customs.css
   file just to distinguish what I’ve already setup for Form ID 1, but it doesn’t
   seem to recognize that.
 * How do I properly assign a class based on the Form ID?
 * Thanks.
 *  Plugin Author [Nick Ciske](https://wordpress.org/support/users/nickciske/)
 * (@nickciske)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/multiple-forms-different-styles/#post-4816665)
 * Classes use a dot: `.salesforce_w2l_lead`
 * IDs use a hash: `#salesforce_w2l_lead_1`
 *  Thread Starter [whuggett](https://wordpress.org/support/users/whuggett/)
 * (@whuggett)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/multiple-forms-different-styles/#post-4816667)
 * Ah yes. Awesome, works!

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

The topic ‘Multiple Forms / Different Styles’ is closed to new replies.

 * ![](https://ps.w.org/salesforce-wordpress-to-lead/assets/icon-256x256.png?rev
   =2316786)
 * [Brilliant Web-to-Lead for Salesforce](https://wordpress.org/plugins/salesforce-wordpress-to-lead/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/salesforce-wordpress-to-lead/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/)
 * [Active Topics](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [Multiple Styles](https://wordpress.org/support/topic-tag/multiple-styles/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 4 replies
 * 2 participants
 * Last reply from: [whuggett](https://wordpress.org/support/users/whuggett/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/multiple-forms-different-styles/#post-4816667)
 * Status: resolved