justify images
-
Hi Paul
How would I ensure frames or thumbnails are right or left justified allowing text to wrap around the images?
Thanks
Paul
-
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
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
PaulAlso,.. what code would i need to align&justify left/right the iframe?
sok.. ive sussed the align iframe issue..!
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
Thanks again Paul..
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?
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
spot on Paul!
Many thanks for your time.regards
PaulHi 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_0thanks
PaulThe 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
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
PaulActually Paul.. I’ve figured it out and got it working…. easy peasy!
Thanks again
Paul
- The topic ‘justify images’ is closed to new replies.