• Resolved MirkoB82

    (@mirkob82)


    Hi,

    i read your tutorial page on how to bring theme support to sportspress, and i created a child theme for my website, with the mentioned support. By the way, i would like to edit tables and graphics, as the theme now shows nearly “default” tables with no appeal. where can i find some references and instructions to edit player portraits, league tables etc?

    in what files can i edit the tables layout and graphics?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Mirkob82 –

    You have to know what you’re doing.

    Apart from following the tutorial here :
    https://support.themeboy.com/article/58-theme-integration-guide

    you can also copy all the files from :
    /public_html/domain.ca/wp-content/plugins/sportspress/templates/
    into :
    /public_html/domain.ca/wp-content/themes/your-theme-child/sportspress/
    (there are about 40 files)

    From here you can access all the page level templates and overwrite them without worrying about updates to the plugin.

    Once I was using the template files in my child theme, I added a bunch of echo / print statements in the files than loaded the page to simply verify which sportspress template was being loaded in the browser.

    You tend to have good control.

    Secondly, the players page output sucks imo.
    So I created my own page to list all the players – then used the shortcode to *only* display the player data I want to (i.e stats, game stats etc).
    It was/is a lot more work. But the full control of the design is more important.

    Thread Starter MirkoB82

    (@mirkob82)

    i totally agree!

    i’ll try today to copy the files you mentioned and see if it works.
    let’s keep in touch in this post: i’ll surely have more questions when editing the markup. (it’s not the first time i create a page but the first that i edit it so “low level”: usually i create pages with SiteOrigin Pagebuilder, but here i have to edit all the template pages and i never did it).

    Thank you for now!

    Roch

    (@rochesterj)

    Hi!

    That’s awesome. Let us know how it works for you then.

    Thanks!

    Thread Starter MirkoB82

    (@mirkob82)

    Hi,

    i gathered all the files and copied them into the child theme, but i must say that they are a bit complicate to me ?? i don’t know what the variables mean and what the structure is, precisely.

    eg: if i want to customize the player list to show 100 players together (not with pages) and to stop if there are more than 100 without showing others (i would like to create a top100), i really don’t know how to do that. same if i want to place some custom graphics for Matches blocks and customize fonts/colors, table head row.. ??
    without a manual, i think it’s difficult to me to go on.

    Hi MirkoB82, that’s why my first comment was “you need to know what you are doing”.

    IMO, you’ll need to hire someone to provide input and add your customizations, or you’ll need to learn how to manage the template layer using PHP.

    For the Top 100 – I’ve not done it, but I’m sure that is available out of the box – all the tables delivered from the stats are sortable, i.e.
    https://www.themeboy.com/wp-content/themes/themeboy/images/sportspress-pro/screenshots/sportspress-pro-screenshot-player-list.png

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Edit Templates to comply with sportspress’ is closed to new replies.