ThemeBoy
Forum Replies Created
-
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Tables and Pools@raymond9 You’ll need to create an event for each match. When creating an event, select the pool as the League.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Couple of questions pleaseGlad I could help 🙂
@teh1aeq Glad I could help!
The icons seen in Football Club are generate via a custom template. It is possible (but not easy) to create your own template if you’re up to the challenge: https://sportspresspro.com/docs/theme-integration-guide/
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Code needed for text centreAh, forgot the dot before each selector. Try this:
/* Applies to all tables */ .sp-view-all-link { text-align: center; } /* Applies to league tables only */ .sp-league-table-link { text-align: center; }We’re transitioning to email support only, so it is best to submit any new tickets via our support site.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] I need to customize template@gold-dollar Players are delivered as a multidimensional array, so you’ll need to loop through that array for each player. Some PHP knowledge is required for this.
Could you show me an example of the event page where content is missing?
You can insert shortcodes into any page, so you can display them as full width as long as your theme has a full width page template.
The plugin also support custom page templates, which is a good option for developers:
https://sportspresspro.com/docs/theme-integration-guide/Widget Wrangler (https://wordpress.org/plugins/widget-wrangler/) might be useful if your theme doesn’t have support for per page widgets.
.sp-table-caption { margin-top: 20px; margin-bottom: 5px !important; }Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] SportsPress Pro@teh1aeq Glad to hear you’re enjoying SportsPress!
We’ve just launched SportsPress Pro for those who want additional functionality but don’t worry, we aren’t limiting or cutting anything out of the free version, or limiting support in any way.
SportsPress Pro includes several advanced “modules” which we were previously offering exclusively as “extensions”, like Sponsors, Team Colors, and Branding. The Pro version is basically a version of SportsPress packaged with all of the extensions as a one-click installation, instead of as separate plugins.
We’re still actively developing SportsPress and will continue to add features to it. Support is provided for free to everyone, including free SportsPress users 🙂
@ross Looks like there was a typo on our end. The class applied to table captions was affected, which caused the issue of large gaps between titles and tables. Updating to version 1.2.2 will fix this.
Please add this code to your theme’s functions.php. It will move event details to position 15, which would make it appear before the results.
remove_action( 'sportspress_single_event_content', 'sportspress_output_event_details', 30 ); add_action( 'sportspress_single_event_content', 'sportspress_output_event_details', 15 );Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] I need to customize template@gold-dollar Assuming this is for the single event template, here are some code snippets to extract data needed to display results and performance:
// Get event. Do this first. $event = new SP_Event( get_the_ID() );// Get player performance. Returns array. $performance = $event->performance();// Get team results. Returns array. $results = $event->results();Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Hide theme warning@sijo55 Thanks for letting me know. We’ll be releasing an update shortly.
@ross This might be a permalinks issue. Could you try flushing permalinks by going to Settings > Permalinks and clicking “Save Changes”?
If the issue persists, please send me a link to one of the articles that are returning a 404 error so that I can have a look.
@ross I’ll reply to the other topic regarding this issue. Marking as resolved for now.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Couple of questions please@teh1aeq There are a couple ways to do this:
1. You can use the code above, and disable the background colors for the bottom 2 rows only in widgets by adding these lines:
.widget_sp_league_table .sp-league-table tbody tr:last-child td, .widget_sp_league_table .sp-league-table tbody tr:nth-last-child(2) td { background: transparent; }2. You can modify the code so that instead of counting the bottom 2 rows, it counts X number of rows from the top. That way, shorthand tables i.e. widgets will not be affected. Here’s an example that will color the 15th and 16th row red:
.sp-league-table tbody tr:first-child td, .sp-league-table tbody tr:nth-child(2) td { background: #9f9; } .sp-league-table tbody tr:nth-child(15) td, .sp-league-table tbody tr:nth-child(16) td { background: #f99; }