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,
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?
Also,.. what code would i need to align&justify left/right the iframe?
You can manually specify the image that the template displays, someone else asked this recently, see here:
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..
You can manually specify the ASIN for each country if you know it using the format:
Is this what you want to do?
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):
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?
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?
- The topic ‘justify images’ is closed to new replies.