Team Rosters
[resolved] Editing Code (4 posts)

  1. ncconcepts
    Posted 2 years ago #

    How do I edit the code to remove the Number, Position and Year from the roster table? I also would like to expand the Weight character limit.

    I am using this for boxing and don't need some of the columns.


  2. Mark O'Donnell
    Plugin Author

    Posted 2 years ago #

    Hi ncconcepts,
    The team rosters table is generated by the mstw_tr_build_roster() function in the mstw-team-rosters.php file.

    When you say, "expand" do you mean to make the column wider or add more characters to the weight field?

    - You can expand the column by using styles (in the css/mstw-tr-style.css file).

    - You can add more characters (it currently allows 8) in the includes/mstw-team-rosters-admin.php file.


  3. ncconcepts
    Posted 2 years ago #

    Ok, I got that but now I am having issues with the colors. I am trying to remove the drop shadow effect on the header text as well as change the font color when highlighting over the player name.

    Take a look: http://gogetas.com/dibella/athletes/

    I would like the font for the column headers to be plain white and when you highlight over the player's name I want it to be red.

    I tried doing in the admin but it's not changing.

  4. Mark O'Donnell
    Plugin Author

    Posted 2 years ago #

    Hi ncconcepts-
    Okay great. Now you need to edit the stylesheet (css/mstw-tr-style.css) to make things look like you want. For example, I made the following change to get red titles without the drop shadow:

    tr.mstw-tr-table-head th {
    padding-left: 5px;
    text-shadow: none;
    color: red;

    To get the hover color to be red, try:

    td.mstw-tr-odd a:hover, td.mstw-tr-even a:hover {
    color: red !important;

    I'm sorry you need the !important but your theme has a !important in a fairly top level rule, which then overrides everything anyone else tries to do. (Not good, IMHO.)

    Let me know.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.