Title: hide match result if empty
Last modified: August 31, 2016

---

# hide match result if empty

 *  Resolved [pekos](https://wordpress.org/support/users/pekos/)
 * (@pekos)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/hide-match-result-if-empty/)
 * Hi Antoine
 * i would like to know how i can hide the match result if there is none yet in 
   the Football Pool Extension plugin. The parenthesis are shown even when no score
   is submitted yet. What control is needed to check if the match score exists?
 * thank you
 * [https://wordpress.org/plugins/football-pool/](https://wordpress.org/plugins/football-pool/)

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

 *  Plugin Author [AntoineH](https://wordpress.org/support/users/antoineh/)
 * (@antoineh)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/hide-match-result-if-empty/#post-7184400)
 * What page, widget or shortcode are you referring to?
 *  Thread Starter [pekos](https://wordpress.org/support/users/pekos/)
 * (@pekos)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/hide-match-result-if-empty/#post-7184403)
 * Hi Antoine
 * i am referring to the extensin plugin which displays the actual match results
   in parenthesis in the user prediction page. In this page the extension plugin
   kicks in and displays the match results.
 * Kind Regards
 *  Plugin Author [AntoineH](https://wordpress.org/support/users/antoineh/)
 * (@antoineh)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/hide-match-result-if-empty/#post-7184404)
 * You can put an extra class to the span that displays the parenthesis. If you 
   include the score placeholder in the class name, you can `display:none` the ones
   where the score is not set (resulting in an empty string).
 * E.g. the class name `hide-%home_score%me`. If home score is a number (e.g. 3)
   then the class name will result in `hide-3me`. And if there is no score yet, 
   then the class name will result in `hide-me`. Same goes for the away_score. The
   CSS rule to hide the spans without a score:
 *     ```
       span.actual-score.hide-me {
           display: none;
       }
       ```
   
 * I updated my [example](https://dl.dropboxusercontent.com/u/397845/wordpressfootballpool/football-pool-add-match-result-to-user-page.php)
   of the extension plugin.
 *  Thread Starter [pekos](https://wordpress.org/support/users/pekos/)
 * (@pekos)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/hide-match-result-if-empty/#post-7184406)
 * Thank you Antoine
 * this did the trick.
 * Thank you
 *  Thread Starter [pekos](https://wordpress.org/support/users/pekos/)
 * (@pekos)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/hide-match-result-if-empty/#post-7184407)
 * Closing the ticket

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

The topic ‘hide match result if empty’ is closed to new replies.

 * ![](https://ps.w.org/football-pool/assets/icon-256x256.png?rev=983880)
 * [Football Pool](https://wordpress.org/plugins/football-pool/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/football-pool/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/football-pool/)
 * [Active Topics](https://wordpress.org/support/plugin/football-pool/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/football-pool/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/football-pool/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [pekos](https://wordpress.org/support/users/pekos/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/hide-match-result-if-empty/#post-7184407)
 * Status: resolved