Title: League table
Last modified: August 22, 2016

---

# League table

 *  Resolved [Symphasia](https://wordpress.org/support/users/symphasia/)
 * (@symphasia)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/league-table-2/)
 * first of all… great plugin! Very easy to use!
 * I don’t know if it was asked before, I looked in other topics but couldn’t find
   it, so here is my question.
 * I have a small league table in my widget. It only shows the top 5 teams of the
   13. What I would like to have is that my team always appear in this 5 teams. 
   Even if we are not in the top 5 (hard league this season 😉 )
    For example. We
   are 10th. Then my table should show number 8,9,10,11 and 12. Is this possible
   in anyway?
 * Another question: Can my team always be highlighted in the league table.
    We 
   have 2 teams, both teams have different league and both team should be hightlighted
   in there league. Is that some css code I need to integrate or is there another
   solution for that?
 * Thank you!!
 * [https://wordpress.org/plugins/sportspress/](https://wordpress.org/plugins/sportspress/)

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

 *  [Fitshase](https://wordpress.org/support/users/fitshase/)
 * (@fitshase)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/league-table-2/#post-5177773)
 * I’d be interested in the answer to your second question.
 *  Thread Starter [Symphasia](https://wordpress.org/support/users/symphasia/)
 * (@symphasia)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/league-table-2/#post-5177970)
 * [@fitshase](https://wordpress.org/support/users/fitshase/): I found a solution
   for my second question.
 * **open sportspress/templates/league-table.php. The search for this line:**
 *     ```
       $output .= '<tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">';
       ```
   
 * **replace it with this:**
 *     ```
       if ($name == "YOUR_TEAM_NAME_A" or $name == "YOUR_TEAM_NAME_B") {
       		$output .= '<tr class="' . ( $i % 2 == 0 ? 'odd-highlight' : 'even-highlight' ) . '">';
       	}
       	else {
       		$output .= '<tr class="' . ( $i % 2 == 0 ? 'odd' : 'even' ) . '">';
       	}
       ```
   
 * Now op your css and give it a color.
 * This should work, it worked for me.
    grtz
 *  Thread Starter [Symphasia](https://wordpress.org/support/users/symphasia/)
 * (@symphasia)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/league-table-2/#post-5177998)
 * I just received a mail from themeboy. Both of my question will be a new function
   in the next update.
    So thank u Themboy! Keep up the good work. I like your plugin
   and I will recommend it!

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

The topic ‘League table’ is closed to new replies.

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

## Tags

 * [highlighted](https://wordpress.org/support/topic-tag/highlighted/)
 * [League](https://wordpress.org/support/topic-tag/league/)
 * [table](https://wordpress.org/support/topic-tag/table/)

 * 3 replies
 * 2 participants
 * Last reply from: [Symphasia](https://wordpress.org/support/users/symphasia/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/league-table-2/#post-5177998)
 * Status: resolved