Plugin | Details |
---|---|
Author URI: | http://smyl.es |
Plugin URI: | http://github.com/tripflex/wp-job-manager-cat-colors |
Contributors: | SpencerFinnell, Myles McNamara |
Tags: | job job listing job region job categories job category job color |
Requires at least: | 3.5 |
Tested up to: | 3.9 |
Stable Tag: | 1.0 |
License: | GPLv3 |
License URI: | http://www.gnu.org/licenses/gpl-3.0.html |
Change a job category color without editing CSS. This plugin was created from Astoundify's Job Colors for Job Types. You will need to add some HTML and PHP code to your template file in order to display the Job Category with the included styling.
Select the color of each existing job category in the Job Listings' settings. Can set the color to be the background color, or text color.
Insert the code below in your template to output the job category with the included styling. The job-category class is used to set the
<li class="job-category <?php echo get_the_job_category() ? sanitize_title( get_the_job_category()->slug ) : ''; ?>"><?php the_job_category(); ?></li>
- Set color as background
- Set color as text
- Job Category public functions
Documentation will be maintained on the GitHub Wiki here.
You can contribute code and localizations to this plugin via GitHub: http://github.com/tripflex/wp-job-manager-cat-colors
If you spot a bug, you can of course log it on Github
Or contact me at myles@smyl.es
https://smyl.es/img/Selection-886x748-50.png https://smyl.es/img/Selection-698x209-51.png
- Install and Activate
- Go to "Job Listings > Settings > Job Category Colors" and set colors.
- First official categories release