How do I add Amazon affiliate image code to woocommerce?

Hi,

I want to add amazon affiliate image code to my products in woocommerce but I don’t know where to place the code. I tried placing it in the description area while in edit product mode, but of course that makes it show up in the wrong place. What should I do?

Hello There,

Please see this guide: https://en.support.wordpress.com/adding-amazon-com-affiliate-links-to-your-wordpress-com-site/
The exact place/template where to add the code will depends on where you want it to appear. Share your site URL and a screenshot on where you want the code to appear or your expected output. Thank you.

1 Like

I’ve attached a screenshot. As you can see, the image shows in the description which might be OK, but there is an empty image space to the left. I’d prefer having the image in that left image space if possible. My website is: fibromyalgiashop.com

Hi there,

Thaks for the screenshot!

Can you point us the page where you have the issue, I can see all of your product details pages are working fine.
I believe the blank image is due to the blank feature image. Please try adding a feature image to the product and let us know how this goes.

Thanks

1 Like

Is there any way to get rid of the blank feature image space?

Hi There,

You can hide the blank featured image by adding this custom CSS under X > Theme Options > CSS:

.woocommerce-product-gallery__image--placeholder {
    display: none;
}

Hope it helps :slight_smile:

1 Like

Hi,
I just went to X>Theme Options, but didn’t find CSS as an option there. What should I do?
Edit: I just found it under Appearance and it worked. Thank you

Hello there,

I think you’ve just missed it. Please see on screenshot image below on where to find it:

I strongly advise you move all your CSS codes to X >Theme Options > CSS. This is to ensure no CSS override conflicts will happen between what is on Theme Options and Appearance > Customize.

Thank you.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.