• Resolved richopenshaw

    (@richopenshaw)


    Hi,

    I’m displaying fixtures on a single club website and want to display fixtures from multiple (but not all) competitions. Up until now we have used a competition covering all fixtures for the relevant team – we have more than one team under the same club name – but I want to start displaying the competition with the fixture details and so need to identify it accurately.

    The code in divi is simply [league=”ID”]. I have tried adding more than one ID separated by a comma (league=”01, 02″ and listing them separately (league=”01″ league=”02″) but neither has worked.

    Any advice would be appreciated, thanks.

    Rich

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi there @richopenshaw ,

    Did you create the calendars for each of your team? Each calendar has a unique ID which you can use to show the events of this specific calendar with a shortcode. For example if the Calendar ID is “1001” then you can show the Event List layout with the following shortcode:
    [event_list id="1001"]
    Or the Event Blocks layout with: [event_blocks id="1001"]

    Thanks,
    Savvas

    Thread Starter richopenshaw

    (@richopenshaw)

    Thanks. It wasn’t set up that way but is now and I’m getting there. However, it’s now removed the dates from the blocks, any idea why?

    Plugin Contributor Savvas

    (@savvasha)

    Please try to temporalily switch to a default theme like “Rookie” or “TwentyTwenty” to see if the date appears to your blocks.

    Thanks,
    Savvas

    Thread Starter richopenshaw

    (@richopenshaw)

    Thanks, I’ve just tried it with Twenty Twenty but it’s the same. When I use the Divi option to ‘Build on Front End’ the date is shown. I also notice the date is missing from pages on which I haven’t yet made the change to resolve my original query.

    Rich

    Plugin Contributor Savvas

    (@savvasha)

    Unfortunately I am not able to reproduce the issue you are describing with the “dissapearance” of the date. The date is shown based on the “events-block.php” template file located either in plugins/sportspress/templates/ or /your-child-theme/sportspress/ folder. You can find it here https://github.com/ThemeBoy/SportsPress/blob/eb444db5b88ef343c72856fd3157a24cd25184fc/templates/event-blocks.php#L209-L211.

    Thanks,
    Savvas

    Roch

    (@rochesterj)

    Hi there!

    Thanks for your reply.

    Can you send us an example? A link to your site would be better so we can check what elements you are using to build it.

    Thanks!

    Thread Starter richopenshaw

    (@richopenshaw)

    This is one of the pages that I changed this week following advice by @savvasha. That achieved what I wanted but that was when the date vanished https://inverurielocos.com/first-team/

    This page I haven’t changed yet and the fixtures haven’t been put into a calendar but the date has also gone https://inverurielocos.com/under-21-under-18/

    Thanks

    Plugin Contributor Savvas

    (@savvasha)

    Hi there @richopenshaw ,

    The html tag is there, but the output text is hidden for some reason. This is mainly caused by themes. The issue appears on all your block-events pages, what shortcode are you using on these pages? Is it the same?

    <time class="sp-event-date" datetime="2023-07-05 19:45:54" itemprop="startDate" content="2023-07-05T19:45+00:00">
    <a ></a>							</time>
    Thread Starter richopenshaw

    (@richopenshaw)

    [event_blocks id=”228276″ status=”future” format=”default” date=”0″ date_from=”default” date_to=”default” date_past=”” date_future=”” date_relative=”0″ day=”” number=”” orderby=”default” order=”default” show_all_events_link=”0″ align=”null”]

    This is the code for the blocks on this page https://inverurielocos.com/first-team/

    We have not been displaying individual fixture details, only blocks. I may have to revert to previous version and look for an alternative solution to my original as a calendar without dates isn’t very useful!

    Thanks

    Plugin Contributor Savvas

    (@savvasha)

    Try to use just this [event_blocks id="228276" status="future"]

    This is how it looks in twenty-twentythree theme https://snipboard.io/dtA6kh.jpg

    Thanks,
    Savvas

    Thread Starter richopenshaw

    (@richopenshaw)

    Thanks for your help guys. The problem has been resolved – we found the app that was causing the conflict.

    Richard

    Plugin Contributor Savvas

    (@savvasha)

    I am glad you sorted it out @richopenshaw . Which plugin was causing this conflict?

    Thanks, Savvas

    Thread Starter richopenshaw

    (@richopenshaw)

    It was WappPress, which I wasn’t actually using anyway. On a related note, is there a simple way of changing the appearance of the event blocks? Specifically, I would like to show the league and venue adjacent to each other on the same line of possible, and/or change the colour of the league name.

    Thanks,

    Richard

    Plugin Contributor Savvas

    (@savvasha)

    You can copy the event-blocks.php template file from wp-content/plugins/sportspress/templates folder to wp-content/themes/your-child-theme/sportspress folder and alter it as you wish.

    For simple changes like different color, or size of texts then you can simply use some custom css code, without altering the template file. If you want that kind of assist please open a new topic with a link to the page you want the changes. It will be easier that way to provide the correct css code for your case.

    Thanks,
    Savvas

    Thread Starter richopenshaw

    (@richopenshaw)

    Thank you, I’ll start a new thread.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Displaying Fixtures In Multiple Competitions’ is closed to new replies.