Font issues when adding HTML fonts inside shortcode block.
-
I installed the Easy Google Fonts plugin to use custom fonts (Playfair Display). To have the testimonial typed out in a typewriter font, I put the following inside a shortcode block using the Typing Effect plugin.
<div><head> <link href='https://fonts.googleapis.com/css?family=Cutive Mono' rel='stylesheet'> <style> body { font-family: 'Cutive Mono';font-size: 22px; } </style> </head> <center><body>[typed string0="I have to say that this book has me like a kid again … When I read the book it unlocks things inside of me, it’s like I’m being set free, like someone gave me back my liberty … I would never forget this nice thing you’ve done for me. And you might think to yourself, for a book? But it’s not just a book, it’s the path that this book is about to set me on. -A BBB Client" typeSpeed="40" startDelay="0" backSpeed="40" backDelay="500"]</body></center></div>Unfortunately, now everything else I add to the site (like the button at the bottom of the page) is in the font I added in the shortcode.
This even changes the font of the admin sidebars–I thought these were not contained inside the page I edit in the Gutenberg editor.
How can I resolve this?
The page I need help with: [log in to see the link]
The topic ‘Font issues when adding HTML fonts inside shortcode block.’ is closed to new replies.