| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Change Font of Standard Template | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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; } |
|||||||
#2
|
|||||||||
|
|||||||||
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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|