Hello @max2348,
The content editor is not suitable/created for embeding custom fonts. I recommend to use wpmm_head hook to import the font and add custom CSS rules.
See the example below about how you can add a Google Font:
// add the code in functions.php of your theme (child theme)
function wpmm_custom_css() {
?>
<style>
@import url('https://fonts.googleapis.com/css?family=Ubuntu');
h1, h2 {
font-family: 'Ubuntu', sans-serif;
}
</style>
<?php
}
add_action('wpmm_head', 'wpmm_custom_css');
You can also use this technique: https://ww.wp.xz.cn/support/topic/design-text-is-forced-in-an-h2/#post-8263762
Thanks.
-
This reply was modified 8 years, 10 months ago by
George J.
But I don’t need to implement the font in my theme because I only need to show it in the maintenance page… Also because I still need to choose which theme I should use for my website.
@max2348: the font will be displayed just on the maintenance page if you use that hook.
Anyway, use the second technique because it is not theme-dependent. 🙂
-
This reply was modified 8 years, 10 months ago by
George J.
I have to copy and paste the maintenance.php file in wp-content folder and rename it as wp-maintenance-mode.php?
@max2348: yes… and after that you can edit that file to add the font + css.
The font I have to add in the .ttf format. Do you have any documentation on how to add it?
@max2348: this link might help you… https://stackoverflow.com/questions/24990554/how-to-include-a-font-ttf-using-css
Keep in mind that this kind of questions have nothing to do with plugin support.