• Resolved dstj

    (@dstj)


    Hi,

    I’d like to know where team logo reduction is set in the table and calendar.

    The table is set to Team vs Team mode and the layout is set to Results

    Example. The uploaded logo has a size of 114×128 px and is reduced to 22×24 px and in this mode it is displayed in the calendar. The calendar is set to the event list layout.

    I wonder if I could set the display of larger team logos.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Roch

    (@rochesterj)

    Hi there!

    Thanks for reaching out.

    This is usually defined by your theme. Would you mind pasting the link to an example of this issue in your site, so we can check it out?

    Kind Regards,
    -Roch

    Thread Starter dstj

    (@dstj)

    Hi Roch,

    Link to the page on this page:

    https://www.wklejto.pl/862650

    I don’t want the link to the page to be public on this topic.

    • This reply was modified 4 years, 1 month ago by dstj.
    Roch

    (@rochesterj)

    Hi there!

    Thanks for your reply.

    Usually, links that aren’t meant to be public shouldn’t be posted here indeed.

    But I’ve visited that link and couldn’t find anything. Did you remove it?

    Thanks!

    Thread Starter dstj

    (@dstj)

    Hi Roch,

    Check again:

    https://www.wklejto.pl/864495

    The team logos in the table are displayed as 24×24 or slightly larger. The same relate for the team logos on the calendar. What is responsible for reducing these logos?

    Roch

    (@rochesterj)

    Oh, my bad. Only now I saw that this site is similar to pastebin, and you pasted the link as text.

    You can reduce the logo size in the table with this snippet:

    body .sp-league-table .team-logo img {
    	max-width: 10px;
    }

    And you can reduce the size for the calendar with this code:

    body .sp-event-list .team-logo img {
    	max-width: 10px;
    }

    Thanks!

    Thread Starter dstj

    (@dstj)

    Yes, this site is like a pastebin.

    The uploaded logo is 104×128, but it displays as 20×24 – that’s what I mean. Where is it changing? I see that the dimensions in the code are set to auto.

    .sp-league-table .team-logo img {
        width: auto;
        height: auto;
        max-width: 2em;
        max-height: 2em;
    Roch

    (@rochesterj)

    Hi there!

    The code I’ve sent it should be enough to change the image size.

    The width is defined via max-width rather than the width (so images can adjust their size in smaller screens).

    Thanks!

    Thread Starter dstj

    (@dstj)

    Hi,

    In which file can I find the code you pasted?

    Roch

    (@rochesterj)

    Hi!

    You can use the custom css field ( Wp admin > SportsPress > Settings > General > Custom CSS ), a child theme or a plugin to add it.

    Kind Regards,
    -Roch

    Thread Starter dstj

    (@dstj)

    Thanks for the information. I just wanted to know, I’m not going to change this code. But those logos in the table and in the calendar that you saw on my site are automatically reduced to this size by the Sportpress plugin, right?

    I asked for this size because in this video I see that the logos on the calendar are bigger in size. So why is there such a difference?

    And in this table, the logos are also displayed larger:

    Roch

    (@rochesterj)

    Hi there!

    Thanks for your reply.

    The image sizes are set by your theme. And in WP you upload them in a larger size and WP crops it to many different sizes, so it will be faster to load your images.

    Thanks!

    Thread Starter dstj

    (@dstj)

    Hi,

    One last question about this. So the Sportpress plugin adapts to the theme layout and this plugin adjusts the image size (logo) according to the theme settings? As can see on my website, only in the table and calendar from Sportpress these images are small, in other places in the theme the images are bigger.

    Roch

    (@rochesterj)

    Hi there!

    Thanks for your reply.

    The layout is ultimately defined by your theme. So if it loads your images on a smaller size, for example, you can change this in your theme.

    The SportsPress plugin takes care of the backend part, and we have just a few frontend elements (which all can be rewritten by your theme).

    You can get in touch with the theme author to check why the images are smaller there, maybe they have different sizes defined.

    Thanks!

    Thread Starter dstj

    (@dstj)

    Hi,

    Thanks for the explanation.

    You’re most welcome!

    Let us know if you need anything else.

    Kind Regards,
    -Roch

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Team logo size’ is closed to new replies.