8

I have install Magento2 and create static block how can I call my theme images in static block ? In Magento1.x we used {{skin url="images/demo.jpg"}}.

Any one have idea for how to call images in Static block not using editor like {{media url="wysiwyg/demo.jpg"}}.

asked Sep 29, 2015 at 10:50

1 Answer 1

20

You can call theme images from static block like this in magento2 :

<img src="{{view url="images/demo.jpg"}}" alt=""/>
Hitesh Koshti
1,4454 gold badges18 silver badges38 bronze badges
answered Sep 29, 2015 at 12:26

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.