Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
198 views
in Technique[技术] by (71.8m points)

php - Easy Google Fonts Wordpress Plugin not supporting with in Free Theme Parallaxsome

I am working in a website on wordpress with a free theme and I want to change font styles of site title, main menu or menus of specific divs. I tried to install Easy Google Fonts plugin but theme is not supporting it. When I activate it following error is showing

Fatal error: Class ‘WP_Customize_Section’ not found in …wp-content hemesparallaxsomeinccustomizerparallaxsome-customizer-classes.php on line 386

I asked about it from theme author and he let me know to contact plugin author.

https://accesspressthemes.com/support/topic/i-want-to-change-font-family-of-site-title-and-main-menu/#post-70747

After that I asked plugin author of Easy Google Fonts and waiting for reply. https://wordpress.org/support/topic/plugin-is-not-supporting/

Please let me know the solution. If some body knows.

Thank you in advance!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

One solution would be to hard code your changes in the theme's style.css file.

You can find the file following this path - wp-content > themes > yourtheme > style.css

Open this file using a file editor and you will be able to edit all the styling, including the font.

It will help if you use the source code as a reference so that you can find the correct classes and ids that are associated with the element.

It's pretty simple to change the font, you can use this as a reference to find the one you want - https://css-tricks.com/snippets/css/css-font-families/

EDIT: Here is an easier way that your client would perhaps understand if they have a very basic knowledge of CSS - https://www.inmotionhosting.com/support/edu/wordpress/change-wordpress-appearance/change-font-globally

Alternatively, there are a ton of other plugins that will do the same thing as the Google Fonts plugin. For example: https://wordpress.org/plugins/use-any-font/

Hopefully, this will provide you with enough information to help.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...