Can I change the styling options for the embedded job widget?

When you embed the Workable job widget on your website, it will automatically inherit the CSS (i.e. things like font and color choices) you use on your site. There's no need to do any further editing if you want to keep a consistent style on your careers page.

However, if you want to make further changes to the CSS for the job widget we‘ve added some special classes as ‘hooks’ on the HTML elements so that you can use them to apply CSS without affecting the rest of your website styling.

1. List of jobs

The embedded jobs are displayed in an unordered list:

<ul class=”whr-items”>...</ul>

Each job is a list item in this list:

<li class=”whr-item”>...</li>

Each job has 3 parts: An h3 header with its title (and a link to the job opening on your company’s mini-site on Workable), an unordered list with its meta information (code, location, department, creation date) and a div with its full description, if you have chosen to include that (by selecting “Show full descriptions” in the Workable widget).

Each .whr-info item uses a label wrapped label in a <span>…</span> so you can style them differently or even hide them with CSS.

If you select to group by location or department, then the .whr-items list described at the beginning of this section will be broken down in separate lists (the groups), each proceded by a group heading, displayed as an h2:

<h2>France</h2><ul> <li>…</li> …</ul>

Note that when you select group by location/department or if you select “list of locations” or list of departments” in the Workable widget, the location or department item respectively is not shown in the section .whr-info since it is already mentioned in the headline above it.

2. List of locations & list of departments

In these two cases, the embedded jobs are grouped, and initially hidden. Only the list of locations or departments is shown. For each individual location or department, you get a header like this:

<h2><a href="#">…</a></h2>

It’s just like the one you get when simply grouping the jobs, only this time the headings are links, and when clicked they reveal the corresponding list of items below them, marked up as explained in the previous section. When a heading is clicked and expands the list of jobs that correspond to it, it also gets a .whr-active class so you can style it accordingly.

3. No jobs?

If no jobs are available, a message appears in the following markup:

<p class=”whr-empty-text”>No positions available</p>

Again, this has special hook class so that it can easily be styled.

4. Sample CSS

Here is a simple stylesheet to get you started styling your own job listings: