View Single Post
  #2  
Old 02-11-2015, 03:01 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Adding a HTML tag to the <head>

First of all, do not modify any core files! You need to create a module, and then make your changes in your module.

I believe that the <head> section is a list. So to add your new template to the list you would put:
Code:
{** * Head list children * * @author Qualiteam software Ltd <info@x-cart.com> * @copyright Copyright (c) 2011-2014 Qualiteam software Ltd <info@x-cart.com>. All rights reserved * @license http://www.x-cart.com/license-agreement.html X-Cart 5 License Agreement * @link http://www.x-cart.com/ * * @ListChild (list="head", weight="100") *}
at the top of your template file.

Then you can include your link in the template like this:
Code:
<link href='//fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote