Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author AntoineH

    (@antoineh)

    What page, widget or shortcode are you referring to?

    Thread Starter pekos

    (@pekos)

    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

    (@antoineh)

    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 of the extension plugin.

    Thread Starter pekos

    (@pekos)

    Thank you Antoine

    this did the trick.

    Thank you

    Thread Starter pekos

    (@pekos)

    Closing the ticket

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘hide match result if empty’ is closed to new replies.