Change “Table of Contents” text font family

[ad_1]

Plugin Author
WPJoli

(@wpjoli)

Hi,

There is no dedicated option for the font-family for now.

You can set a custom font with some CSS for the root div just like so:

.wpj-jtoc {
    font-family: serif; /* change serif to any font */
}

If you want to use a Google font though, you would need an extra step to make sure it is properly loaded.

Let me know if this works.

That was a quick reply!

I am indeed using Google Fonts, hosted locally. Going to look into how I can make that load properly then. Any help welcome ofc 😉 Thank you again for the reply.

Plugin Author
WPJoli

(@wpjoli)

Sure !

You can have a look at this tutorial to enqueue a Google font in the fashion of WordPress:

https://ostraining.com/blog/wordpress/adding-google-fonts/

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer