跳到内容 跳到侧边栏

標籤: 

本主题包含 0 則回覆 ,有 0 voices 。

最后由 藤野 愛子 7 months, 4 weeks前 更新。

协助者:: Shekhar Bhandari.

作者 帖子
4 2 月, 2025 于 8:18 上午 #16664993

藤野 愛子

Background of the issue:
Original language of my site is Japanese. With WPML, I'm trying to create the pages in English (隐藏链接). In English pages, I would like to apply a different font family and added the following code in CSS: html[lang="en"] h1, html[lang="en"] h2 { font-family: 'Open Sans Condensed', sans-serif !important; }

Symptoms:
The CSS is not working because even in the translated page (隐藏链接), the language setting of the HTML remains .

Questions:
How can I change the HTML language setting to for English pages?
How can I apply a different font for each language using WPML?