I’m attempting to customise the ultimo theme (although presumably this would apply to any magento theme). I have created a new custom theme which (using theme.xml) uses Infortis/ultimo as it’s parent.
Ultimo has the following path for it’s header.phtml
ultimo/default/template/page/html/header.phtml
I’ve tried a number of different options for my theme to override this – none of which appear to work e.g.
frontend/my_theme/default/template/html/header.phtml
frontend/my_theme/default/template/page/html/header.phtml
Does anyone have any ideas?
3
Answers
Use the theme path to override your template
Like
app/design/<Vendor>/<Package>/<Module_Package>/templates/your.phtml
It seems you are using magneto 1.X (By your reference code)
In Magento 1.X
First you should configure your new
package/theme
in the backed.Now you can modified file
header.phtml
In Magento 2
In Your theme.xml you set the parent the as Infortis/ultimo
just like
/Infortis/ultimo/template/page/html/header.phtml
/Custom/Theme/template/page/html/header.phtml
please clear and flush cache
and deploy and give permission
sudo php bin/magento cache:clean
sudo php bin/magento cache:flush
sudo php bin/magento setup:static-content:deploy
sudo chmod 777 -R var/ pub/media pub/static
Note: dont’ forget to set Store Them As your custom created theme..
registration.php Code
);
theme.xml