问题
I have a website in Magento and I am relatively new to this platform and I have basic notions of HTML and PHP. I want to make an account on Google Webmasters tools and I need to confirm that the website is mine.
I have a metadata that I need to insert it in the header of the website, but I cannot find the header section. Can someone help me with this please?
回答1:
I did a quick google search on where the header file in magento is located it came out with this
app/design/frontend/base/default/template/page/html/head.phtml
And i assume default is the default theme ,if you have your own custom theme just follow the path to your theme.
I hope that this is what you are looking for.
回答2:
You can add this code in Magento from backend. Here are the steps:
- Login in Admin panel
- From Top Navigation Click on
System>>Configuration - From Left Click on
DesignTab - In right Column Click on
HTML HeadGroup. - You can add your script code in
Miscellaneous Scriptstextarea
来源:https://stackoverflow.com/questions/30864333/how-to-find-header-section-in-magento-platform