Develo Design

Develo Design Menu

Adding Images to Magento Pages

I recently answered a question on stack exchange for someone who was looking for different ways to add images to static pages in Magento. With Magento being as flexible as it is you can imagine there is more then one way to achieve this, here I list a few ways you can do this to a single page or multiple.

Using the “Insert Image” button will add the images which are relative to the media wysiwyg directory


You could also have images stored as the content of a static block and then call them into the cms page contact using either using


Or use the widget interface and select Widget Type “CMS Static Block” which will add blocks by id like

If you’d like the image to appear just above or below the main content look at adding it through layout XML and adding a static block either for that page using the CMS page design tab or for every CMS page using the “cms_page” layout handle.
If your image is stored as a static block and you’d like it before the main content add the following XML to your page or cms handle.


If you’d like the block to come after the content enter


You can see the answers and responses to this question here, http://magento.stackexchange.com/questions/5043/how-many-different-way-to-insert-image-in-magento-cms-page/5045#5045

Share

Loading Disqus Comments ...
Loading Facebook Comments ...

Post Comment

Your email address will not be published. Required fields are marked *

Discuss My Project

We want to hear about your project! Provide us with a few details and we’ll get back to you for a chat.