Comments 2Bob Hufkens started the conversation5 days ago on Tuesday at 10:20amHi, I can't seem to disable b2bking_fonts_dmsans using any method (wp_enqueue_scripts, wp_footer, wp_head).How should it be done?Thanks,Bob 2Bob Hufkens replied5 days ago on Tuesday at 10:31amI also need to disable all Roboto files loaded by the plugin. It's important not to impact my client branding guidelines and just inherit the theme fonts. 2Bob Hufkens replied4 days ago on Wednesday at 3:34pmI managed to disable dm sans. I'd still like a solution for the Roboto font files though.Thanks. 2,330WebWizards replied4 days ago on Wednesday at 6:24pmHi there, It should be possible to replace B2BKing's fonts with a different font, or to set it to inherit other site fonts. To do that, please add this CSS to your site: :root { --b2bking-font-family-a: inherit !important; --b2bking-font-family-b: inherit !important; --b2bking-font-family-c: inherit !important; } If the above does not work for you for any reason, I'd suggest to also try adding it as a PHP snippet rather than as CSS directly, e.g. add_action('wp_head', function(){ ?> <style> :root { --b2bking-font-family-a: "Arial" !important; --b2bking-font-family-b: "Arial" !important; --b2bking-font-family-c: "Arial" !important; } </style> <?php }); This should replace all plugin fonts, including Roboto. Let me know if that can solve it. Kind regards, Stefan 2Bob Hufkens replied3 days ago on Thursday at 8:01amThanks. Some woff files were still being loaded though because the css vars aren't used consistantly in the css.But based on your input I managed to override everything and stop the files from being loaded. I ended up using this:[class*="b2bking"], [id*="b2bking"]{font-family: inherit !important;}It would be ideal if the fonts could be disabled with a setting.Thanks.1 Like Sign in to reply ...
Hi, I can't seem to disable b2bking_fonts_dmsans using any method (wp_enqueue_scripts, wp_footer, wp_head).
How should it be done?
Thanks,
Bob
I also need to disable all Roboto files loaded by the plugin. It's important not to impact my client branding guidelines and just inherit the theme fonts.
I managed to disable dm sans. I'd still like a solution for the Roboto font files though.
Thanks.
Hi there,
It should be possible to replace B2BKing's fonts with a different font, or to set it to inherit other site fonts.
To do that, please add this CSS to your site:
If the above does not work for you for any reason, I'd suggest to also try adding it as a PHP snippet rather than as CSS directly, e.g.
This should replace all plugin fonts, including Roboto.
Let me know if that can solve it.
Kind regards,
Stefan
Thanks. Some woff files were still being loaded though because the css vars aren't used consistantly in the css.
But based on your input I managed to override everything and stop the files from being loaded. I ended up using this:
[class*="b2bking"], [id*="b2bking"]{font-family: inherit !important;}
It would be ideal if the fonts could be disabled with a setting.
Thanks.