Google Fonts

Using Google Fonts

A list of all available Google Fonts will be automatically added to the Theme Editor upon installation of Max Mega Menu Pro.

Google Fonts

Dequeueing Styles

Max Mega Menu will automatically include the required Google Font CSS on your site. If your theme already includes the Google Font(s) you’re using, you can stop Max Mega Menu from including a copy of the font by adding the following code to your themes functions.php file.

Adding support for extra font weights

Max Mega Menu enqueues google fonts with the 400 (normal) and 700 (bold) font weights.

In the following example we’ll add support for the “Open Sans Semi Bold” font.

Step 1:

Add the following code to your functions.php file;

This will make the Extra Light and Semi Bold font available for selection within the theme editor:

Step 2:

If your theme already includes support for this particular font and weight, you can stop here. Otherwise, add the following code to your themes functions.php to tell Max Mega Menu to load the 200 and 600 font weight for the Open Sans font:

Like what you see? This functionality is available inĀ Max Mega Menu Pro

Related Articles