Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
GGANG
Experienced
Topic Author
Posts: 122
Joined: 02 Feb 2012, 11:01

Custom CSS - Font Family

25 Jul 2017, 18:59

The site have 3 languages English, Japanese and Thai.
For English and Japanese pages are use the Raleway:400,600|Amaranth.
Font style Prompt for Thai pages.

How to setting the Custom CSS for a whole of Thai page to use Font-Family as "Prompt" ?
I've tried to added CSS Class for Context and Modules but not success. I don't know how to use the feature.
Please help! Thank you. 
Attachments
modules.jpg
modules.jpg (31.64 KiB) Viewed 10458 times
context.jpg
context.jpg (43.43 KiB) Viewed 10458 times
custom-css.jpg
custom-css.jpg (67.31 KiB) Viewed 10458 times
font-style.jpg
font-style.jpg (11.27 KiB) Viewed 10458 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14009
Joined: 30 Sep 2006, 03:37

Re: Custom CSS - Font Family

26 Jul 2017, 03:11

It's a bit unclear to me how/why you are applying multiple fonts to the same website, but I guess you have different pages in different languages? Not 100% sure it will work like this, as you are trying to override fonts on a per page basis by class name. However, you have a syntax error in your CSS:
Code
.thai-lang { font-family: Prompt important;}
Should be:
Code
.thai-lang { font-family: Prompt !important;}
 
User avatar
GGANG
Experienced
Topic Author
Posts: 122
Joined: 02 Feb 2012, 11:01

Re: Custom CSS - Font Family

08 Aug 2017, 01:51

Thank you, Karl
Success...I have build the web pages for 4 languages finished at last night.
after fixed a syntax error then all the paragraph letter have change to "Prompt" 
another head tag <h1>, <h2> just put a class for font-family.

Lets take a look "THE PHUKETHON 2017" the event at Phuket, Thailand.
https://lertsiritravel.net/en/sports-tr ... ethon-2017
Code
<h1 class='thai-lang'></h1>
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14009
Joined: 30 Sep 2006, 03:37

Re: Custom CSS - Font Family

08 Aug 2017, 03:25

Nice!
 
hardliner
Experienced
Posts: 134
Joined: 22 Jul 2011, 10:15

Re: Custom CSS - Font Family

09 Aug 2017, 03:43

The Intro was very good, but i can not deactivate the Sound from video. You have more than one music in the same time. That was a little bit confusing.
 
User avatar
GGANG
Experienced
Topic Author
Posts: 122
Joined: 02 Feb 2012, 11:01

Re: Custom CSS - Font Family

09 Aug 2017, 23:56

@hardliner thank you sooo much for review and comment.
I'm sure audio player was disable auto play.

See more page. https://lertsiritravel.net/en/sports-tr ... thon-tent/
Attachments
audio-plugin.jpg
audio-plugin.jpg (27.61 KiB) Viewed 10394 times