First, sorry for my mistakes, I am a new Magento developer.
So I made a litle module to make some social share buttons (Facebook, twitter, etc…) and so I have to add in the head some meta (for Open Graph).
I search everywhere on the internet and no answers are solving my problems.
How can I override the head ?
Everywhere I see "search for head.phtml…" but I search everywhere and I don't have any head.phtml.
I use Magento 2.2.5, and I have Infortis Ultimo theme.
Best Answer
1) Create a custom child theme that uses the ultimo theme as a parent:
app/code/design/frontend/YOURCOMPANY/YOURTHEME/theme.xml
2) create
app/code/design/frontend/YOURCOMPANY/YOURTHEME/registration.php
file3) create
app/design/frontend/YOURCOMPANY/YOURTHEME/Magento_Theme/layout/default_head_blocks.xml
4) Enable your custom theme in the admin area.
5) Read up for more info: https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/theme-inherit.html