• Is there any filters to be able to conditionally load fonts on certain pages? Otherwise every single font installed on the site gets added to every page…

Viewing 1 replies (of 1 total)
  • Plugin Support Dinesh Karki

    (@dcsupport)

    At the moment, the plugin loads fonts globally. However, since WordPress automatically adds the page slug as a class in the <body> tag, you can conditionally apply fonts using custom element box from our font assign tab.

    For example, if your page slug is about-us, WordPress will output something like:

    <body class="page page-about-us …">

    So you can simply add this in the Custom Element box:

    body.page-about-us h1

    Then select the font you want to assign.

Viewing 1 replies (of 1 total)

The topic ‘Conditionally load fonts’ is closed to new replies.