Magento2: Own theme development
Dont inherit from luma, it isnt working properly. Inherit from blank !
Theme structure
Customgateway = vendor name
entertainer = theme name
app/design/frontend/Customgateway/entertainer
Overriding Magento template files
example - you want to change htdocs/vendor/magento/module-theme/view/frontend/templates/html/header.phtml (this can you see in template hints)
copy file
htdocs/vendor/magento/module-theme/view/frontend/templates/html/header.phtml
to
htdocs/app/design/frontend/Customgateway/entertainer/Magento_Theme/templates/html/header.phtml
Css change - manually
- update css file under app/design…
- delete css file under pub/static…
rm -rf pub/static/frontend/Customgateway/entertainer/en_GB/css/local-l.css
- deploy static content only for that theme, exclude unnecessary folders
php bin/magento setup:static-content:deploy en_GB --theme Customgateway/entertainer --no-html --no-fonts --no-images --no-less --no-javascript --no-html-minify
Css change - automatically
use grunt for copying files