X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Changeing font type issue (https://forum.x-cart.com/showthread.php?t=76034)

Kayali 02-26-2018 10:07 PM

Changeing font type issue
 
Hi
Please need assistance
I create three separate front-end languages English,Turkish, Arabic.
Now I need to apply new font type for the whole Arabic text template.
I already added this cod in CSS but nothing changes

html[lang="ar"] body.target-main {font-family: 'Lemonada', cursive;}

qualiteam 02-26-2018 11:11 PM

Re: Changeing font type issue
 
First of all, "body.target-main" makes the change to happen on the home page only. Other pages have no ".target-main" class on the body tag.

Second, "body" is not the only tag that configures the font for the page. There are other tags and classes that set the font for page elements: .head-h2, .head-h3, ..., .mm-navbar, and others. The exact list depends on the theme, so you have to use the browser's "Inspect element" function to determine what styles you are to override to change the font.

Kayali 02-28-2018 08:20 AM

Re: Changeing font type issue
 
Thanks Alex, I did what you advise me. I could change the template's font-family :-)
but still one problem
The custom CSS which I applied it effected on the three front-end languages
whereas I need to apply it for one language only.

qualiteam 03-01-2018 12:52 AM

Re: Changeing font type issue
 
You still need html[lang="ar"] in front of your custom CSS rules to filter out other languages.


All times are GMT -8. The time now is 07:43 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.