WordPress.org

Ready to get started?Download WordPress

Forums

Team Rosters
[resolved] Editing Code (4 posts)

  1. ncconcepts
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/team-rosters/

  2. Mark O'Donnell
    Member
    Plugin Author

    Posted 1 year 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.

    Best,
    -Mark

  3. ncconcepts
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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.
    -Mark

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.