• Resolved saryvo

    (@sariwo)


    How to set team logos in a larger size in “Countdown” and “Event Block”?

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

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

    (@savvasha)

    Hi there @sariwo ,

    Can you provide link to where exactly you want to set team logos in a larger size? Some screenshots will also help ??

    Thanks,
    Savvas

    Thread Starter saryvo

    (@sariwo)

    Plugin Contributor Savvas

    (@savvasha)

    Hi @sariwo ,

    You need to copy the template files countdown.php and event-blocks.php from wp-content/plugins/sportspress/templates/ to wp-content/themes/your-child-theme/sportspress/. Then edit these files and replace sportspress-fit-icon with sportspress-fit-medium

    See more details about WordPress thumbnails here. You can event set custom sizes to your thumbnails by adding extra arguments to get_the_post_thumbnail() function on your template files.

    Also a very handy plugin that will show all registered thumbnail sizes your site has, to decide if you want something different.

    Thanks,
    Savvas

    Thread Starter saryvo

    (@sariwo)

    @savvasha unfortunately it doesn’t work. We have taken it step by step and it does not respond to the change. ??

    Plugin Contributor Savvas

    (@savvasha)

    Hi @sariwo ,

    Try to add the following custom css code at SportsPress->General-Custom Code:

    .sp-template-countdown .team-logo {
    max-width: 15em;
    }

    You can change the max-width value to any value you want.

    Thanks,
    Savvas

    Thread Starter saryvo

    (@sariwo)

    You are a CHAMPION!!
    It worked great here (countdown) ??

    but this doesn’t work (event blocks), I used the code

    .sp-event-blocks .team-logo img {
    max-width: 15em;
    }

    Plugin Contributor Savvas

    (@savvasha)

    Try something like the followin:

    .sp-event-blocks .team-logo img {
    max-width: 15em;
    max-height: none;
    }
    Thread Starter saryvo

    (@sariwo)

    Great, it helped, but unfortunately I can’t make it wider than 8 cm, because at a larger size the team logo on the right side is cut off.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.