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>

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

Newbie
  
Join Date: Feb 2015
Posts: 1
 

Default Adding a HTML tag to the <head>

Hey!

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?

Thanks.
__________________
X-Cart 5.1.10
No add - ons
Reply With Quote
  #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

The following user thanks totaltec for this useful post:
tony_sologubov (02-18-2015)
Reply
   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 04:52 AM.

   

 
X-Cart forums © 2001-2020