Page MenuHomePhabricator

How to change font of head lines and titles?
Closed, DeclinedPublic

Description

Hi
I am admin in Gilaki wikipedia. I have changed fonts to Android Arabic Naskh from here but still our headlines are not changed. (I mean titles that put between == and ==.
How I could change them?

Event Timeline

Varg raised the priority of this task from to Medium.
Varg updated the task description. (Show Details)
Varg subscribed.
Varg set Security to None.

Adding @matmarex as they could help for CSS configuration.

The h1 and h2 needs more specific selectors to override the skin's styles.

Do something like this and it should cover both body and all the headers (you can remove the font-family definitions from all the other ones):

body,
.mw-body h1, 
.mw-body h2 {
	font-family: "Droid Arabic Naskh", "Tahoma", "DejaVu Sans", sans-serif, sans;
}
Aklapper claimed this task.

The h1 and h2 needs more specific selectors to override the skin's styles.

Do something like this and it should cover both body and all the headers (you can remove the font-family definitions from all the other ones):

body,
.mw-body h1, 
.mw-body h2 {
	font-family: "Droid Arabic Naskh", "Tahoma", "DejaVu Sans", sans-serif, sans;
}

Thanks. But where should I put these codes?

Hi @Varg. This does not sound like something is wrong in the code of MediaWiki (a so-called "bug"), but instead like a support request (how to change settings, questions how to do something, etc.). As Wikimedia Phabricator/Maniphest is only for specific reports and enhancement requests, for future reference, please use the MediaWiki Support Desk for support requests.

Regarding your question, please see https://www.mediawiki.org/wiki/Manual:CSS about MediaWiki:Common.css.