WordPress.org

Support

Support » Plugins and Hacks » WordPress-Amazon-Associate » [Resolved] [Plugin: WordPress-Amazon-Associate] Wrapping Text Around Product Ad

[Resolved] [Plugin: WordPress-Amazon-Associate] Wrapping Text Around Product Ad

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Matthew Denton

    @mdbitz

    Hi as outlined in the other forum posts there are a few ways you could make the ads align left.

    Option 1 )

    Wrap the short code in a DIV tag that has it’s style set to float:left. To do so insert the product ad into the content via the quick links or amazon tinymce button. After it is inserted switch to the HTML view and wrap the shortcode in the following code.

    <div style="float:left;">[amazon-enhanced ...] ... [/amazon-enhanced]</div>

    Option 2 )

    Define a CSS Class that you use to float an object within your themes css. Apply this class to the ad using the container_class property as shown below (in this example the class defined is float-left).

    [amazon_image id="B003P2WO5E" target="_blank" size="Medium" link="true" container="div" container_class="float-left" ]The Way of Kings (The Stormlight Archive)[/amazon_image]

    Option 3)

    Set the container_style property of the shortcode to apply the css style to the generated container object. I notice i didn’t add this property to the various ui screens and will do so for future release.

    [amazon_image id="B003P2WO5E" target="_blank" size="Medium" link="true" container="div" container_style="float:left;" ]The Way of Kings (The Stormlight Archive)[/amazon_image]

    Upon review it might be

    Hi there,

    Thanks so much for getting back to me.

    I’ve contacted the guys that run my wordpress theme to find out what my current CSS class is to float left and was told that it was ‘alignleft’.

    However when I enter this as the container class into the plugin it doesn’t work and i’m left with a large gap as before.

    Do you know why this might be the case? I’m happy to DM you my log in if you need to look at the coding of anything. Frustrating as I really want to start using this great plugin.

    Andrew

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: WordPress-Amazon-Associate] Wrapping Text Around Product Ad’ is closed to new replies.
Skip to toolbar