Tagged: CSS, font-family, multilanguage
Hi everyone,
I’m building dual-language website by url structuring as follows:
English site: http://www.example.com
2nd language site: http://www.example.com/2nd/
I hope that I can force all the pages & posts with url containing “www.example.com/2nd/” to use another font family other than the one I selected in theme setting.
Hey!
What’s your set-up for this? a plugin like WPML, Multisite or it is a completely different installation?
Regards,
Josue
Hi Josue,
Thanks for reply.
I use neither plugin nor new installation.
I create a new page “http://www.example.com/2nd/” which is the descendant of homepage “http://www.example.com/”.
Hi!
You could try something like this in Quick CSS:
body.page-id-734{
font-family: "ANOTHER FONT" !important;
}
734 would be the Page ID of “2nd”.
Best regards,
Josue
Is there a sleek method to select multiply pages with different page-id? Many thanks.
Hey!
Yes, you can use the code as following
body.page-id-734,body.page-id-59 {
font-family: "ANOTHER FONT" !important;
}
Best regards,
Yigit
Thx for update, I have input it. However, the font-family style can’t apply on AV Special Heading. May I have you further help?
Hey!
Try:
body.page-id-734 *,
body.page-id-59 *{
font-family: "ANOTHER FONT" !important;
}
Cheers!
Josue
Thanks, it works.
You are welcome, glad to help :)
Regards,
Josue