Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Adding a HTML tag to the <head>

   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
Thread Tools Search this Thread
Old 02-11-2015, 01:05 PM
Tiernan Tiernan is offline

Join Date: Feb 2015
Posts: 1

Default Adding a HTML tag to the <head>


I've just starting using X-Cart 5.1 and I am trying to add a Google Font to the <head> because it won't work when I use the @import method on the custom css.

I've been looking in skins/default/en/header and in the common folder but I can't find it. How do I add it?

X-Cart 5.1.10
No add - ons
Reply With Quote
Old 02-11-2015, 03:01 PM
  totaltec's Avatar 
totaltec totaltec is offline

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:
{** * Head list children * * @author Qualiteam software Ltd <> * @copyright Copyright (c) 2011-2014 Qualiteam software Ltd <>. All rights reserved * @license X-Cart 5 License Agreement * @link * * @ListChild (list="head", weight="100") *}
at the top of your template file.

Then you can include your link in the template like this:
<link href='//' 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, or skype b8bym0nkey

X-cart Tutorials | X-cart 5 Tutorials

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

The following user thanks totaltec for this useful post:
tony_sologubov (02-18-2015)
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -8. The time now is 09:36 PM.


X-Cart forums © 2001-2020