Title: Job Category &#8211; Class
Last modified: May 24, 2023

---

# Job Category – Class

 *  Resolved [ahkolon](https://wordpress.org/support/users/ahkolon/)
 * (@ahkolon)
 * [3 years ago](https://wordpress.org/support/topic/job-category-class/)
 * Is it possible to use separate classes for each category in the front end to 
   design elements differently instead of relying on specific element IDs? This 
   would save time as I wouldn’t need to manually add the same code for different
   categories. For example, when the category is “Festanstellung,” I want to apply
   a pastel blue background, and when it’s “Praktikum,” it should be pastel green.
   However, currently, I have to include both category names and corresponding styles
   in the CSS code.
 * ![](https://i0.wp.com/www.networkassistance.de/wp-content/uploads/2023/05/screenshot-
   von-website.png?resize=537%2C230&ssl=1)
 * As shown in the image above, the middle job does not have the same CSS rule applied
   because it lacks a category class, even though a category is selected for it.
   Consequently, I have to manually add the same CSS code that I applied to other
   elements for this each job every time..
   .post-13519::before{content:”Praktikum”;
   background-color: #daffe4;width: 100%;text-align: center;font-size: 22px;font-
   weight: bolder;padding: 8px 0;}
 * .post-15513::before{
   content:”Festanstellung”;background-color: #deefff;width:
   100%;text-align: center;font-size: 22px;font-weight: bolder;padding: 8px 0;}

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

 *  [braehler](https://wordpress.org/support/users/braehler/)
 * (@braehler)
 * [3 years ago](https://wordpress.org/support/topic/job-category-class/#post-16763945)
 * [@ahkolon](https://wordpress.org/support/users/ahkolon/)
 * there is a plugin which handles the category coloors via the admin settings.
 * [https://de.wordpress.org/plugins/wp-job-manager-category-colors/](https://de.wordpress.org/plugins/wp-job-manager-category-colors/)
 * a little bit outdated but gets the job done on our sites
 *  Thread Starter [ahkolon](https://wordpress.org/support/users/ahkolon/)
 * (@ahkolon)
 * [3 years ago](https://wordpress.org/support/topic/job-category-class/#post-16764434)
 * That actually helped me put categories to the front end even though it took some
   to find where to put the code and between what line and after some styling it
   is better than ever. Thank you.
 *  Plugin Support [lastsplash (a11n)](https://wordpress.org/support/users/lastsplash/)
 * (@lastsplash)
 * [3 years ago](https://wordpress.org/support/topic/job-category-class/#post-16777015)
 * Hi [@ahkolon](https://wordpress.org/support/users/ahkolon/) –
 * I’m glad to hear that you got this figured out.
 * If you have additional questions about WP Job Manager in the future, feel free
   to start a new thread.

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

The topic ‘Job Category – Class’ is closed to new replies.

 * ![](https://ps.w.org/wp-job-manager/assets/icon-256x256.gif?rev=2975257)
 * [WP Job Manager](https://wordpress.org/plugins/wp-job-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-job-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-job-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-job-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-job-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-job-manager/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [lastsplash (a11n)](https://wordpress.org/support/users/lastsplash/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/job-category-class/#post-16777015)
 * Status: resolved