• Resolved Sea Jay

    (@jcollier)


    [Cross-posted from developer’s site; not sure which is the best place …]

    I would like to apply styling to the product image generated by the shortcode.

    Could you surround the a and img tags with a div containing a class something like “wpaa-product-link” so that we may apply styling, such as a float?

    Thanks for the great plugin!

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m doing something similar, and I can suggest a workaround. You can get the direct associate links to the products (i.e. Product image and what not) and if you’re using an estore theme, just input the links into your own custom generated product frame. Make sense?

    Thread Starter Sea Jay

    (@jcollier)

    I’m just adding linked product images into the main body of basic posts in a basic theme.

    I like the ability to search Amazon products from within the edit screen and insert the images right there.

    Until I can style these plugin links, I’ll follow up on your suggestion. Thank you!

    Plugin Author Matthew Denton

    (@mdbitz)

    Hi, the amazon_image short code allows you to enter a class parameter that will append the img tag with the inputted class. I’m working on a new version of the plugin and will see about including a container and container_class parameters that will enable users to do custom styling of the links.

    Thread Starter Sea Jay

    (@jcollier)

    I hadn’t seen the shortcode attribute for this. Works great! Just what I needed for now, until there’s a container.

    [amazon_image id="B002VKSCVQ" target="_self" size="Medium" link="true" class="float-right"]Ambient Findability [AMBIENT FINDABILITY] [Paperback][/amazon_image]

    Thank you

    Plugin Author Matthew Denton

    (@mdbitz)

    Hi, version 1.5.0 of the plugin has been released and it contains the following 2 attributes to allow users greater control over stylizing links and images.

    container
    container_class

    For Example [amazon_link id="B002VKSCVQ" container="DIV" container_class="myClass"]

    Would render the following link
    <div class="myClass"><a href="...." /></div>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WordPress-Amazon-Associate] Styling’ is closed to new replies.