• Resolved pcvcadmin

    (@pcvcadmin)


    Is there a way to suppress the column header in a player list? For example if I have a player list with simply the names of players on a team but no other columns, the player list will have the column header of “Player”. Can I suppress this display? It is probably Custom CSS but I’m not clear what. Thank-you

Viewing 10 replies - 1 through 10 (of 10 total)
  • I did it this way:

    .sp-player-list .data-name.sorting {
    visibility: hidden;
    }

    Thread Starter pcvcadmin

    (@pcvcadmin)

    Excellent. Thank You. I will try it. QQ. Does this code suppress it for all player lists? Is there any way to do it for a specific player list?

    Hi!

    Thanks for reaching out, and thanks for your help again, @gator8

    That code changes all player lists, but we can target a specific page if you want.

    Thanks!

    Thread Starter pcvcadmin

    (@pcvcadmin)

    Thank you both for responding. I have played around a bit with it and here is what I found.

    1. The suggestion by @gator8 hides the label but still displays the header row.
    2. I have tried this code:

    .sp-player-list .data-name.sorting {
    display: none;
    }

    This does suppress both the header row and the column label. (I only have one column). The actual effect is that it momentarily displays the row and label then hides it. Not perfect but manageable.
    3. The bigger issue for me is I need to target a specific set of player list. @roch can you please post the css code to do that?

    Also, it would be great if the player_list shortcode could have a filter element based upon team. Currently a player_list must be created for each team.

    Thanks

    • This reply was modified 6 years, 10 months ago by pcvcadmin.

    Hi!

    Sure, we can do that!

    Can you please send us a link to your site?

    Thanks!

    Thread Starter pcvcadmin

    (@pcvcadmin)

    Sure. Here is an example of the player list. I would like to suppress the top row (ie Player) in the list. Play List Sample

    Hi!

    Add the following code in your custom css field ( Wp admin > SportsPress > Settings > General > Custom CSS ) and let us know how it works:

    .page-id-14713 .data-name.sorting {
    	display: none;
    }

    Thanks!

    Thread Starter pcvcadmin

    (@pcvcadmin)

    Hi @roah,

    Yes it did suppress the column header on that page. I tried to use the same techniques for a page with multiple lists and I couldn’t get it to work. this is my CSS code:

    .page-id-14713 .data-name.sorting {
    	display: none;
    }
    .page-id-14721 .data-name.sorting { 
    	display: none;
    }

    As you may notice the page in the original link has the header suppressed. However for this page Team Rosters the header is still visible.

    I’m not sure if the issue is that I have the wrong pageid. If you can tell me how I should get the right page id or what I may be doing wrong, it would be appreciated.

    Thanks,

    Thread Starter pcvcadmin

    (@pcvcadmin)

    OK. I was able to figure it out. My CSS was not correct. It is all good now. Thanks for the help.

    I’m glad it’s resolved!

    Please, let us know if you need anything else.

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Player List – Supress Column Header’ is closed to new replies.