Template adds empty amazon-product-container div
-
Hi,
I am trying this plugin out on a local xampp install. I only need the oEmbed feature really to insert one product link into a post.
However, using the list template for example it seems to reader an empty (not entirely empty but no product data) amazon-product-container div above the actual div which renders the product image, title,e tc.
In settings > general I have tried changing max number of products to 1 but then it just renders the almost empty amazon-product-container div and not the actual product data.
On both occasions, this leaves a horrible amount of white space.
I have tried activating different templates and selecting them but they all seem to produce the same result – empty white space.
All I need is the product image, title, price and a button.
This seems like a bug but is there a way to generate my own template to ensure I can strip out anything I don’t actually need?
Below is the HTML generated when I post one product link into a post using the list template. I have tried changing class names in the item format field but it stills generates the unneeded amazon-product-container div.
<div class=”amazon-products-container-list amazon-unit-” style=””>
<div class=”amazon-product-container”>
<div class=”amzn-product”>
<div class=”amzn-product-image” style=””>
<div class=”amazon-product-thumbnail” style=”max-width:160px; max-height:160px; “>
<br>
<br>
</div>
<p></p></div>
<div class=”amzn-product-title”>
<h5 class=”amazon-product-title”>
<br>
</h5>
<p></p></div>
</div></div>
<div class=”amazon-product-container”>
<div class=”amzn-product”>
<div class=”amzn-product-image” style=””>
<div class=”amazon-product-thumbnail” style=”max-width:160px; max-height:160px; “>
<br>
<br>
</div>
<p></p></div>
<div class=”amzn-product-title”>
<h5 class=”amazon-product-title”>
Call of Duty?: Black Ops Cold War (PS5)<br>
</h5>
<p> <span class=”amazon-prices”><span class=”offered-price”>£59.95</span></span>
</p></div>
</div></div>
</div>
<p><!– Rendered with Amazon Auto Links by miunosoft –></p>`Thanks
- The topic ‘Template adds empty amazon-product-container div’ is closed to new replies.