• Resolved gigamanlt

    (@gigamanlt)


    `Hello everybody,
    I am to ask for help regarding the final results of the matches.
    I am using version 2.75 of Sportpress free.
    I would like to be able to highlight, in the list of competitions played, the final results, eg. In the following way:
    Team A vs Team B 1 – 0, where only the winning team (be it A or B), and the final result, must be in bold black and team B in normal color (by default) and vice versa. While in case of a tie, the color must be the default. How can I do this through the CSS?

    I give some examples:

    Winning Team:
    <strong>A</strong> vs B: <strong>1</strong> – 0
    C vs <strong>D</strong>: 0 – <strong>2</strong>

    In case of a tie (color by default) :
    A vs B: 0 – 0
    C vs D: 1 – 1

    I hope I was clear in explaining the request and thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi there @gigamanlt

    If you use the inspect tool of your browser you can see that there is a “selector” class on each team based on the outcome of the event. So if TeamA won, the selector will be something similar to “sp-win”. You can use this selector to bold your winning team. I am not sure that this is also possible with the results though…

    Thanks,
    Savvas

    I used this and it worked great until something else stopped working and I had to reinstall the plugin. Now the class is “competitor” and I can’t get it to figure out a way to have it go back to “sp-outcome-win” and “sp-outcome-loss.”

    Plugin Contributor Savvas

    (@savvasha)

    Please open a new topic @sarahsmile417 .

    Thanks,
    Savvas

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change color of results’ is closed to new replies.