Skip to content

Instantly share code, notes, and snippets.

@yogeshdubey2006
Created June 15, 2021 06:52
Show Gist options
  • Save yogeshdubey2006/9dddd44b6ce462b1898bfa69d28c2b95 to your computer and use it in GitHub Desktop.
Save yogeshdubey2006/9dddd44b6ce462b1898bfa69d28c2b95 to your computer and use it in GitHub Desktop.
magento 2
<img src='<?php echo $this->getViewFileUrl('images/footer-logo.png'); ?>' alt="Demo">
<img src="{{view url="images/slide-bg.jpg"}}" alt="test" />
# https://magento.stackexchange.com/questions/93688/add-a-static-image-on-phtml-page-and-cms-blocks-magento2/93697
<img src='<?php echo $this->getViewFileUrl('Company_Module::images/image-icon.png'); ?>' alt="image-icon" width="30" height="25">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment