WordPress.org

Ready to get started?Download WordPress

Forums

Amazon Link
[resolved] justify images (14 posts)

  1. pabnews
    Member
    Posted 1 year ago #

    Hi Paul

    How would I ensure frames or thumbnails are right or left justified allowing text to wrap around the images?

    Thanks
    Paul

    http://wordpress.org/extend/plugins/amazon-link/

  2. paulstuttard
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    The way I have done this to add the WordPress default class 'alignleft' or 'alignright' to the outermost element in the appropriate template.

    So for a simple thumbnail I created a new template called 'thumb left' with the following content:

    <div class="alignleft al_found%FOUND%">
     %LINK_OPEN%
      <img alt="%TITLE%" title="%TITLE%" src="%THUMB%" class="%IMAGE_CLASS%">
     %LINK_CLOSE%
    </div>

    Hope that helps,

    Paul

  3. pabnews
    Member
    Posted 1 year ago #

    that seems to work Paul.. ! many thanks.

    One other quicky....

    If i want to use my own photo, but have localised links, how do i go about doing that?

    KRs
    Paul

  4. pabnews
    Member
    Posted 1 year ago #

    Also,.. what code would i need to align&justify left/right the iframe?

  5. pabnews
    Member
    Posted 1 year ago #

    sok.. ive sussed the align iframe issue..!

  6. paulstuttard
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    You can manually specify the image that the template displays, someone else asked this recently, see here:

    http://wordpress.org/support/topic/using-localisation?replies=12#post-3512667

    Cheers,

    Paul

  7. pabnews
    Member
    Posted 1 year ago #

    Thanks again Paul..

  8. pabnews
    Member
    Posted 1 year ago #

    One issue i have found Paul..

    When the amazon item, has different ASINs in the US and UK.. For example, ive just found this to be the case for Google Chromebooks...

    In this case it either works in the UK or the US but not both.. and u get an error.

    An ideal solution would be have different ASINs depending on the country..

    Any ideas?

  9. paulstuttard
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    You can manually specify the ASIN for each country if you know it using the format:

    asin[uk]=0123456789&asin[us]=9876543210

    Is this what you want to do?

    Cheers,

    Paul

  10. pabnews
    Member
    Posted 1 year ago #

    spot on Paul!
    Many thanks for your time.

    regards
    Paul

  11. pabnews
    Member
    Posted 1 year ago #

    Hi Paul

    Is it possible to link to a non-product specific page... i.e. bestselling digital cameras... i.e. there is no specific ASIN number?...
    links would be, (without my affiliate ID):
    UK
    http://www.amazon.co.uk/Bestsellers-Electronics-Digital-Cameras/zgbs/electronics/560836/ref=zg_bs_nav_ce_2_560834
    or
    US
    http://www.amazon.com/best-sellers-camera-photo/zgbs/photo/ref=zg_bs_nav_0

    thanks
    Paul

  12. paulstuttard
    Member
    Plugin Author

    Posted 1 year ago #

    The development version of the plugin allows you to specify the URL to use, but you would have to manually include the TAG as part of the URL so you wouldn't gain much.

    The current version will let you manually create your links, so its pretty labour intensive but you keep the localisation:

    In the shortcode:

    [amazon template=manual&url[uk]=http://www.amazon.co.uk/Bestsellers-Electronics-Camera-Photo/zgbs/electronics/560834&url[us]=http://www.amazon.com/best-sellers-camera-photo/zgbs/photo&title=Bestselling Cameras]

    With a template containing something like:

    <div class="al_found%FOUND%">
       <a href="%URL%?tag=%TAG%">%TITLE%</a>
    </div>

    Make sure the template is set to Type "No ASIN".

    That might do what you want?

    Paul

  13. pabnews
    Member
    Posted 1 year ago #

    Thanks for that Paul.... However, just to clarify, are you saying I need to create a new template containing the code you specify?.. If so, how would I go about doing that?

    thanks
    Paul

  14. pabnews
    Member
    Posted 1 year ago #

    Actually Paul.. I've figured it out and got it working.... easy peasy!
    Thanks again
    Paul

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags