For this you will have to change the print_matches
and print_matches_for_input
functions in the classes\class-football-pool-matches.php
file. The matches are displayed in a table, so styling those with the current html will be very hard, if not impossible.
Next version will have some filters and actions that hook into these functions. This will make it a bit easier to change the behavior of these functions.
Is it as simple as changing the ordering of those functions? This is all to do with styling the pool in a responsive theme.
Thanks.
Yes, within the foreach loop in both functions every match is added to a table row. You can change the order of the table cells and/or add extra rows. Or change the table structure to div’s.
I see how the table is put together but errors are returned above the prediction form when I insert an extra row. Or if for example, I remove the cell showing “time”, that cell still displays but the cell containing jokers dissapears. Is it just the file I need to edit?
Thanks.
What is the error?
If you add or remove cells make sure you change the colspan attribute of the match type and match date rows as well.
Parse error: syntax error, unexpected T_VARIABLE in /home/aokhopns/public_html/everygoalmatters/wp-content/plugins/football-pool/classes/class-football-pool-matches.php on line 457
Returned after removing the td ‘time’ and changing colspan to 10.
I thought you said the next version would make it easier to do this yet I can’t see any difference in 2.3.5?
Thanks.
I don’t think this will be too much of a problem for me. I’ve since been looking at making the styling responsive and I really don’t think it needs much at all. I’ve almost got the match input screen working perfectly on all resolutions and rotations. I’ll stick with that I think, rather than edit the layout of the table contents.
Thanks.
Hi, I planned to add more changes in the 2.3.5 release, but unfortunately I had to release it sooner because of a bug I had to fix. So you’re correct: there is no difference in the part you are looking at.
I’m really curious about the end result when you’re finished. Can you send me a link to your site (wordpressfootballpool [at] gmail [dot] com) when you’re happy with the result?
Yeah I’ll drop you a mail when it’s done. I’m aiming for December 1st. I’ve only set the match input (main predictor) screen as responsive so far but it certainly seems to work fine on all resolutions. I’d send a link when it’s finished and looking pretty 🙂