1

I want to add a bug herd javascript extension in head tag of my magento 2.1 store but unable to find the <head> tag. i searched for the local xml but it was not there. How to locate this ?

1

it is on : /app/design/frontend/"your_theme_package"/Magento_Theme/layout/default_head_blocks.xml

6
  • or on default.xml like this : prntscr.com/gyj6b6 – MagentoDeveloper Oct 17 '17 at 14:27
  • how i will add in the xml file ? i want to add in script in this file. – tech_geek Oct 17 '17 at 14:30
  • you find : /app/design/frontend/your_theme/web/js. add a js file and call it in the head tag – MagentoDeveloper Oct 17 '17 at 14:32
  • can you please help how would i call this in the head tag i cannot see any js example . – tech_geek Oct 17 '17 at 14:32
  • just add a file in the js folder and name it : test.js and on the head tag add <script src="js/test.js"/> like this example prntscr.com/gyja88 – MagentoDeveloper Oct 17 '17 at 14:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.