Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Pippin Williamson

    (@mordauk)

    Are you comfortable with modifying template files?

    Thread Starter dougmiller

    (@dougmiller)

    Hi,
    Yes … ish. More comfortable adding custom css, but yes. I’m using Suffusion, so editing template files isn’t always so easy, but I’m up for a challenge!

    I’ve tried adding img.attachment-thumbnail {min-width:100%; height:auto;} to the theme, which was getting me somewhere, but not the complete solution

    Thread Starter dougmiller

    (@dougmiller)

    Maybe that was a bit of a daft thing to say. Do you mean modifying EDD template files or theme ones? Either way – chuck us some code!

    Thread Starter dougmiller

    (@dougmiller)

    Hi Pippin,
    Have I got this wrong, or were you going to kindly offer up a template modification for this? Or are you just very busy and I need to be patient?!!

    Doug

    Plugin Contributor Pippin Williamson

    (@mordauk)

    Sorry for the delay.

    Here’s a quick video that shows how to modify template files in EDD: https://easydigitaldownloads.com/videos/template-files/

    You can modify the image size displayed by tweaking the “the_post_thumbnail()” function in the template file: https://codex.wordpress.org/Function_Reference/the_post_thumbnail

    Thread Starter dougmiller

    (@dougmiller)

    Hi,
    Thanks for the reply.
    I have created folder edd_templates in my theme (Suffusion) and have uploaded the available templates from EDD plugin. Have successfully edited the cart template for instance.
    Now I’m stuck .. am I looking for the the_post_thumbnail() function in wp-includes, or in the active theme?

    Thanks

    Plugin Contributor Andrew Munro

    (@sumobi)

    Hi Doug,

    The the_post_thumbnail function is in your theme. Run a search through your theme for it and then you can pass in other sizes as per the doc.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Thumbnail for landscape images’ is closed to new replies.