WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Amazon Link] Changing Image Size

[Resolved] [Plugin: Amazon Link] Changing Image Size

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author paulstuttard
    Member

    @paulstuttard

    Hi,

    The image sizes are whatever Amazon decide to serve via the AWS so can vary greatly.

    I think you are changing the size of the wrong img tag in the template, you need to add the height and width tags to the first img tag. The second one is for tracking page impressions by Amazon.

    e.g. update the thumbnail template to:

    <div class="al_found%FOUND%">
     %LINK_OPEN%
     <img height="100" width="100" alt="%TITLE%" title="%TITLE%" src="%THUMB%" class="%IMAGE_CLASS%">
    %LINK_CLOSE%
    <img src="http://www.assoc-amazon.%TLD%/e/ir?t=%TAG%&l=as2&o=%MPLACE_ID%&a=%ASIN%" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
    </div>

    Alternatively if you use the Amazon Search Tool in the post/page edit screen to upload the ‘large’ image to your WordPress media library this will generate image sizes that you usually use for other uploaded media. The plugin will _always_ use this image in preference to any other.

    Hope this helps!

    Paul

    Thanks Paul!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Amazon Link] Changing Image Size’ is closed to new replies.