Template Path Hints
Stores
, then Configuration
under the Settings tabAdvanced
group, now select Developer
Debug
group you will find Enabled Template Path Hints for Storefront
, select Yes
from the dropdown menu and hit the Save Config
button.element.phtml
template, we will now look at it's layout file located in the Vendor\Nosto
folder of your Magento 2 Installation.vendor/nosto/module-nostotagging/view/frontend/templates
and you will find the element.phtml
Now, if we want to override this template, we need to create some directories according to the name of the theme or module we are overriding.Nosto_Tagging
, which is the name of our module.
In the path app/design/frontend/<vendor>/<theme_name>/Nosto_Tagging
we also need to create 2 new directories.layout
and another folder named templates
templates
directory, we put the new templates structure we want Nosto to use, so create the element.phtml
file there with the following content:layout
folder we need to create a new file named default.xml, the basic structure for this file is:vendor
folder structure.
Create the following directory structure:templates
directory, we put the new templates structure we want Nosto to use, so create the element.phtml
file there with the following content:layout
folder we need to create a new file named default.xml, the basic structure for this file is:move
in our layout file.app/design/frontend/<vendor>/<theme_name>/Nosto_Tagging/layout
app/code/My/Nosto/view/frontend/layout
default.xml
to move the Recommendations For You
block:after="-"
and before="-"
to define exactly after or before which element you will put the new one. The dash -
means all elements.nosto.page.home1
block to the very top of the page.destination
tag attributeas
attribute%magento_installation_path%/vendor/nosto/module-nostotagging/view/frontend/layout
directory