Adding Code between <head></head> Tags

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Adding Code between <head></head> Tags

Post by kwikstand » Mon Aug 28, 2017 5:49 am

How can code be added before the </head> tag? Currently, I am trying to ad the facebook pixel, but there are other times when this needs to be done
Contractor's Solutions
www. contractors-solutions.net

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Adding Code between <head></head> Tags

Post by jmestep » Mon Aug 28, 2017 10:51 pm

If you want this to be site wide on all but checkout pages, you need to add it to Layouts/Base.master. For checkout/membership pages, add it to Layouts/Fixed/Base.master.

If it is javascript, you might want to add it to the store footer to see if it still works. Search engines and site performance tools are more and more recommending to not add javascript to the header because it blocks the page load until the javascript is run.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply