Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter robertpickettiii

    (@robertpickettiii)

    Ok i figured out how to get the logos to show but 2 problems now!

    1) The logos show up twice. Once where I put them, once in the post content.

    2) The logos are extremely pixelated. How do I show a higher quality photo?

    Plugin Author Brian

    (@brianmiyaji)

    @robertpickettiii You can hide the event logos by going to SportsPress > Settings > Events and turning off “Logos” under “Templates”. Alternatively, you could add the following code to your theme’s functions.php to remove the hook altogether:

    remove_action( 'sportspress_before_single_event', 'sportspress_output_event_logos', 10 );

    Regarding image quality, this depends on the function you are using to get the logos. Could you post your current code here?

    Figured that out. Now I need a way to change the delimiter to an image. Also wonder how to call final points per team

    Plugin Author Brian

    (@brianmiyaji)

    @robertiii Have you tried adding an image as HTML in the delimiter setting? The function sp_get_main_results will give you an array of final results per team:
    https://github.com/ThemeBoy/SportsPress/blob/master/includes/sp-api-functions.php#L56-L59

    I have tried adding the <img src:”https://site.com/media/whatever.jpeg”&gt; It doesn’t work returns weird something. Seems as though it cuts it after src.

    code for img is <img src= and not <img src:

    Thread Starter robertpickettiii

    (@robertpickettiii)

    Sorry misposted. That’s what i used makes no difference! Sorry thank you for noticing that though! I tried setting the image in the setting and it cuts the code short. Also sorry I’m somewhat clueless, how would I use the function in the template?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Calling Event Logos’ is closed to new replies.