Highlight Places
The Highlight Places module is included in SportsPress Pro. It adds a Highlight Places meta box to the league table edit screen, letting you apply color highlights to specific positions in the standings — for example, marking qualification places or relegation zones.
The Highlight Places Meta Box
Open any league table's edit screen. The Highlight Places meta box appears in the sidebar. It contains a table with four columns:
Color — a color picker input. Click the field to open the Iris color picker and choose a highlight color.
Place — a number input (minimum 1). Enter the position number to highlight. For example, enter
1to highlight the top-placed team.Comment — a text input. Enter a label that describes what the highlight means, such as "Champions League" or "Relegation". This text appears below the table on the frontend.
A delete button (×) to remove the row.
Click the + button in the header of the meta box to add a new row.
Adding a Highlight Rule
Click the + button to insert a new row.
Click the color field and select a color.
Enter the place number in the Place field.
Optionally enter a description in the Comment field.
Repeat for additional places.
Click Update to save.
To highlight a range of places with the same color (for example, places 1 through 3 for Champions League qualification), add one row per place, each with the same color. The frontend legend de-duplicates consecutive identical colors and shows only one legend entry per unique color.
Global Highlight Type Setting
A setting in SportsPress > Settings > League Tables controls whether the highlight color is applied to the entire table row or only the rank cell:
Only Rank cell — highlights only the position number cell (
td.data-rank)Whole Row — highlights the entire team row
This setting is global and applies to all league tables on the site.
Frontend Display
When a league table is rendered, the module outputs inline CSS that targets the row at the specified position (using a zero-indexed CSS class sp-row-no-N where N = place − 1). The background color of the targeted cell or row is set to the configured color.
Below the table, a legend appears listing each unique color alongside its Comment text. Rows with an empty Comment are omitted from the legend. If two consecutive places share the same color, only one legend entry is shown for that color.
