[Resolved] How do I change the color of every single table?
Assuming you are running the current version of the plugin…
If you want ALL your tables to have the same color scheme, you can either edit the defaults in the stylesheet or you can set the colors in the display settings.
If you want each roster table (for each team, say) to have a different color scheme, then you must edit the stylesheet and add custom styles. Examples of what I did on my plugin development site are at the bottom of the stylesheet. You might also want to look at the documentation on styling @ shoalsummitsolutions.com.
Let me know.
[ Signature moderated. ]
ok i go on http://shoalsummitsolutions.com/dev/test-roster-plugin/ and then i click on http://shoalsummitsolutions.com/dev/sample-table-css/
what code should I choose to change the color of the table? where should I put this code?
The code goes at the bottom of the plugin stylesheet (/css/mstw-tr-styles.css). Check out the code that’s there right now for example. (It may be a bit more current than what’s on the site.) The rules you need are the rules with the team slug in them – sf-giants or cal-bears.
You pretty much need to know some css and how to use the element inspector in a browser (firefox firebug or chrome developer tools) to get this done.
sorry but don’t understand. i go to css/mstw-tr-styles.css and I add the code to the bottom of the page from this link http://shoalsummitsolutions.com/dev/sample-table-css/
is that right? but what code should I take to change every single table?
can you give me an example?
thanks a lot
No you really have to bring up the file on your website in an editor. For example you can go to your dashboard->plugins->installed plugins->Team Rosters->Edit-> and edit the
mstw-tr-style.cssfile. The examples at the end of that file are what you need but they need to be modified for your team slug, table colors, etc. I can’t tell you want to do there because I don’t know what you want. If you aren’t comfortable with cascading style sheets I highly recommend you hire someone to do it. It’s not hard but you need to know how.
Ok thank you. I only have to change the colors of each table…
but I have to insert the shortcode in the table in those strings? and exactly where?
insert the shortcode in the table in those strings?
Sorry, I’m not following you.
which piece I need to change these?
[ Moderator note: 378 lines of CSS deleted, please just post a link to your style.css file instead. ]
here link…please help me!
I’m happy to help you with my plugins working on your site, but I’m sorry as the plugin developer it is not my job to style your site for you. Again, if you are not comfortable with modifying css files then I recommend you HIRE someone to help. You shouldn’t expect professionals to build your site for you for free.
Thanks manulazio. I will add that to the list. For now, the sample .css file will have to serve as the mini guide.
Perhaps implementing in the UI that once you create a team, then you can add players specifically in that order. Basically treating each individual team as a category, then all players for that team(category) would be in that container. In the UI for that category, the ability to change colors, add logos could be done on an individual category basis.
Just my 2 cents.
Thank donjuanjohn. Interesting idea. I thought about treating teams as categories when I built the first version. I forget exactly why I choose not to at the time, but I know why I’m going a different direction for the MSTW Framework and the next Game Schedules release.
- The topic ‘[Resolved] How do I change the color of every single table?’ is closed to new replies.