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

Change Font of Standard Template

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 12-18-2018, 10:59 AM
 
rubendn rubendn is offline
 

Newbie
  
Join Date: Oct 2018
Posts: 2
 

Default Change Font of Standard Template

Is it possible to change the font used in the Standard template to a Google Font?

I don't think you can use @import under Custom CSS & JS.

This is what I added:

@import url('https://fonts.googleapis.com/css?family=Lato');

body, .navbar-nav, .head-h2, .head-h3, .sidebar {
font-family: 'Lato', sans-serif;
}
Reply With Quote
  #2  
Old 12-18-2018, 02:01 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,197
 

Default Re: Change Font of Standard Template

I would create simple module, decorate View/CommonResources class

protected function getCommonFiles()

XC loads there "Open Sans" font from Google fonts and you can remove it and add Lato.
This has to be done with custom module - don't just modify the XC file.

You may need to modify some css files as well and replace every reference to "Open Sans" with "Lato"

OR you can also try with @font-face as this will create an alias for the "Open Sans"

@font-face {
font-family: "Open Sans";
src: url(/local/path/to/Lato);
}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following 2 users thank cflsystems for this useful post:
Ed B. (10-15-2019), qualiteam (12-19-2018)
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 11:15 PM.

   

 
X-Cart forums © 2001-2020