Title: Customized CSS for each custom template
Last modified: August 22, 2016

---

# Customized CSS for each custom template

 *  Resolved [myidea](https://wordpress.org/support/users/myidea/)
 * (@myidea)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/customized-css-for-each-custom-template/)
 * Hi thanks again for the awesome plugin!
 * Let’s say I have default + 3 custom templates for list display:
    pdb-list-default.
   php pdb-list-custom1.php pdb-list-custom2.php pdb-list-custom3.php I have customized
   the code, placed in the ../template dir of the child theme, and created the WP
   pages to recall them with [pdb_list template=custom1] [pdb_list template=custom2][
   pdb_list template=custom3] all good till here.
 * Here my question:
    can I have custom CSS (for dl dd dt…) per each template? Example
   custom1 has dl green and dd red custom2 has a backgroung image and dl dd dt black….
   Is there an easy 🙂 way to do it? – creating the class in the CSS and give all
   attributes, where to recall it? – better to set custom output (colors….) at the
   beginning of the custom php file?
 * Many thanks
 * [https://wordpress.org/plugins/participants-database/](https://wordpress.org/plugins/participants-database/)

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

 *  Plugin Author [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/customized-css-for-each-custom-template/#post-5179856)
 * You have two ways to do this:
 * one would be to give each template it’s own class on the outer div. Them use 
   that in all your selectors in your theme stylesheet or in the plugin custom CSS
   setting. This is really the best way to go because if there are any rules that
   are common to more than one template, you’d only have to write it once.
 * Another approach would be to include the CSS (in a style tag) in each template,
   but this is not recommended.
 *  Thread Starter [myidea](https://wordpress.org/support/users/myidea/)
 * (@myidea)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/customized-css-for-each-custom-template/#post-5179938)
 * Hey thanks for your great support!
    That’s what I thought, I’ll go for the class!
   Thanks again!

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

The topic ‘Customized CSS for each custom template’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [myidea](https://wordpress.org/support/users/myidea/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/customized-css-for-each-custom-template/#post-5179938)
 * Status: resolved