Skip to content

Instantly share code, notes, and snippets.

@ThomasLarge
Last active January 23, 2018 10:11
Show Gist options
  • Save ThomasLarge/1039e5b129bad644aaf7ca811f9c7dba to your computer and use it in GitHub Desktop.
Save ThomasLarge/1039e5b129bad644aaf7ca811f9c7dba to your computer and use it in GitHub Desktop.
Magento 2 helpers
You have to just rename your theme module directory like Magento_CatalogWidget.
New file path for your theme: mytheme/Magento_CatalogWidget/templates/product/widget/content/grid.phtml
When core module name with - you have to remove that and make the next character Uppercase.
Eg.: if you want to override core module module-catalog-inventory then your path would be Magento_CatalogInventory.
# Get media url
{{skin url="path/to/file.jpg" _area="frontend"}}
{{media url='path/to/file.jpg'}}
# How to run commands to push front end files to live
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment