How to find header section in Magento platform?

与世无争的帅哥 提交于 2019-12-13 19:29:15

问题


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:

  1. Login in Admin panel
  2. From Top Navigation Click on System >> Configuration
  3. From Left Click on Design Tab
  4. In right Column Click on HTML Head Group.
  5. You can add your script code in Miscellaneous Scripts textarea


来源:https://stackoverflow.com/questions/30864333/how-to-find-header-section-in-magento-platform

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!