Home games
-
Hey just wondering what would keep my home games from showing up in bold. Any suggestions would be helpful.
https://www.saskatoonarsenal.com/?page_id=2
Nothing fancy just getting started. Love this plug in by the way!
-
Hi lavertyj,
Glad you like the plugin. The next update, coming *very* soon, will have a number of cool new features and a bug fix or two.As for the home games, their appearance is controlled by the following lines in the ./css/mstw-gs-styles.css file:
/* Set the home row attributes */ .mstw-gs-home tr, .mstw-gs-home td { font-weight: bold!important; }
Simply change it as you desire. E.g., change ‘bold’ to ‘normal’.
Note that the above code appears in two places in the stylesheet with slightly different class names. One rule controls the shortcode’s appearance and one controls the widget’s appearance.
Enjoy!
Thanks for the prompt reply. I have looked at the css as you mentioned but it seems to have no effect at all. If you look at the page : https://saskatoonarsenal.com/?page_id=2/
You can see that there is no diff between any of the home and away games. Not sure as to why. Again any suggestions would be appreciated.
Hummm …. Okay, I re-opened this one. I looked at your site in the style inspector (in Chrome) and the important style:
.mstw-gs-odd tr, .mstw-gs-odd td { font-weight: bold!important; }
is not being applied on your site but it is on mine. When I added it the matched css rules, voila. I don’t know how familiar you are with WordPress and styles, but if you e-mail me ([email protected]), I can sent you a picture of the page with the rule working. So I’m not sure what’s going on with your site. I test on Twentyeleven and it has always been fine.
I don’t know if that helps you or not. But I’d like to help you with this because it will probably come up again. However, I will release version 2.0 within an hour or two, and I really don’t want to invest time debugging something other than the current version. So would it be possible for you to update to version 2.0 and then continue debugging this problem (if it doesn’t go away).
Thanks.
I have updated to 2.0. The bold issue is still there and it seems that te countdown now adds an href link to the opponent. Not sure why but I am sure I can mask that through the css unless there is a better fix. The main one I would lie to see is the bold option for the home games. I have looked into the css but I must be missing something there. Thanks again for you help.
Hi lavertyj,
I installed 2.0 on a clean Twenty Eleven installation and can repeat the behaviors you describe. (That’s a good thing.) I fear the table styles need to be re-worked entirely. I’m looking but it may take a bit, since I’m a bit slammed with another project this week.As for the team links, that’s pretty simple typo. Line 1012 in the mstw-game-schedule.php looked like this:
if ( opponent_link != '' ) {
and it works a lot better if it looks like this:
if ( $opponent_link != '' ) {
Stay tuned …
I must buy you a pint! Fixed the link issue and more than happy to wait for the bold issue that is minor. Just reading your read me file and it mentioned that it would be easy to add a single post page for these games. I think I might have a use for that. I have found an attendance plug in that could be added to the post page and therefore I could use this shortcode on the single post page to allow for me to have people check whether they will make the game or not. Let me know if you think this would work and if you could tell me how to create the single post page.
Lavertyj
Well, you can buy me a coffee on my site, but a pint sounds better right about now … LOL!
Just reading your read me file and it mentioned that it would be easy to add a single post page for these games. I think I might have a use for that.
I was originally thinking about a singular page template (it would be singular-game_sched.php) that would allow you to view one game from the admin editing page. But that didn’t seem very useful. I’m not sure a page template would be all that useful for your application either. You might be better served with a [shortcode] that showed the info for one game; then you could create a page with that shortcode and your attendance shortcode. (??)
If you can show me what game information you want display and how you want it to be laid out, maybe a sketch or a layout via a private e-mail ([email protected]), I can add that shortcode this weekend. Hopefully, I’ll get time to fix the styles too.
Hey John,
I released version 2.1 today and improved the css support. I believe the styles are working much better (and I think you got them sorted out on your own anyway.I’d like to mark this one (the styles) as resolved. We can continue the discussion of the singular page via e-mail, or you can open it on another forum item. (We shouldn’t keep adding issue upon issue to one forum thread. That’s a bad practice.)
-Mark
Thanks Mark,
Absolutely this should be marked as resolved. Thanks again for the great support!John
- The topic ‘Home games’ is closed to new replies.