Title: Only show image
Last modified: November 8, 2017

---

# Only show image

 *  Resolved [himu73](https://wordpress.org/support/users/himu73/)
 * (@himu73)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/only-show-image/)
 * Hi,
 * Is it possible to show only image using custom template?
 * I want to show image of 400px height with auto width.
 * Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [superninchen](https://wordpress.org/support/users/superninchen/)
 * (@superninchen)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/only-show-image/#post-9662537)
 * Yes, clone the template “ProductAd” and remove from the copy everything you don’t
   need.
 * About the image size: By default the template uses Medium
    `<img class="aalb-
   154-pa-product-image-source" src="{{MediumImageURL}}" srcset="{{LargeImageURL}}"
   alt="{{Title}}" />` You might change that to {{LargeImageURL}}
 * Or modify the size in the according CSS snippet below in the template editor.
 * HTH,
    Sascha
    -  This reply was modified 8 years, 6 months ago by [superninchen](https://wordpress.org/support/users/superninchen/).
 *  Thread Starter [himu73](https://wordpress.org/support/users/himu73/)
 * (@himu73)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/only-show-image/#post-9663006)
 * I have edited the ProductAd template and able to show only image. But it only
   shows right or left. I cannot make it in the center. Can you help me.
 *  [superninchen](https://wordpress.org/support/users/superninchen/)
 * (@superninchen)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/only-show-image/#post-9663051)
 * I am no CSS expert either but I think the key is in one of the styles `aalb-pa-
   product-image`, `aalb-pa-product-image-wrapper` or `aalb-pa-product-image-link`,
   in which you should set the attribute to center the image.
 * Or you can use the old-fashioned brute force approach and put HTML center tags
   around it. Ugly, but effective.
 *  Thread Starter [himu73](https://wordpress.org/support/users/himu73/)
 * (@himu73)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/only-show-image/#post-9663343)
 * When I change following line left from right, it works.
 *     ```
       .aalb-pa-ad-unit.pull-left {
           float: left;
       }
       ```
   
 * But I cannot move the image to center.
    -  This reply was modified 8 years, 6 months ago by [himu73](https://wordpress.org/support/users/himu73/).
 *  [superninchen](https://wordpress.org/support/users/superninchen/)
 * (@superninchen)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/only-show-image/#post-9663374)
 * Because the float attribute is not supposed to take that value “center”. It describes
   the way text should flow around an image. Left means the image is to the right
   and the text to the left, and vice versa. Center does not make sense in this 
   context.
    [https://www.w3schools.com/css/css_float.asp](https://www.w3schools.com/css/css_float.asp)
 * Perhaps these instructions will help you adjust the CSS correctly.
    [https://www.w3schools.com/css/css_align.asp](https://www.w3schools.com/css/css_align.asp)
 * Like I said above, experiment with one of the three styles I mentioned.
 *  Plugin Author [Amazon Associates Link Builder](https://wordpress.org/support/users/amazonlinkbuilder/)
 * (@amazonlinkbuilder)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/only-show-image/#post-9686244)
 * Thanks [@superninchen](https://wordpress.org/support/users/superninchen/) for
   helping out.
 * Dear [@himu73](https://wordpress.org/support/users/himu73/),
    We assume that 
   your query has been resolved and closing this loop.
 * In case you still need any assistance, please feel free to comment & reopen the
   thread.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Only show image’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/amazon-associates-link-builder_fec375.
   svg)
 * [Amazon Associates Link Builder](https://wordpress.org/plugins/amazon-associates-link-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-associates-link-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-associates-link-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-associates-link-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-associates-link-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-associates-link-builder/reviews/)

## Tags

 * [image](https://wordpress.org/support/topic-tag/image/)

 * 6 replies
 * 3 participants
 * Last reply from: [Amazon Associates Link Builder](https://wordpress.org/support/users/amazonlinkbuilder/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/only-show-image/#post-9686244)
 * Status: resolved