cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3.2. How to add custom attribute (media image) to a static block?

Magento 2.3.2. How to add custom attribute (media image) to a static block?

Hi,

 

I have created a new product attribute called 'height-image' and I wish to display this image on my product page in a static block. Where do I start? I assume I create a template within vendor/theme/magento_catalog/templates/product/view and then call this in a CMS block. I have done something similar for text attributes and rendering via layouts, but not for blocks and images.

 

Any help would be gratefully received.