Support » Plugin: Self-Hosted Google Fonts » Doesn’t seem to be working for me

  • Hi,
    I added:
    font-family: Open Sans, Helvetica, Arial, sans-serif;
    to the css of my whole <body> tag
    I installed the plugin, and enabled it.
    I then use FontFinder (Revived) addon in Firefox to tell me the font being used and it is still Helvetica.
    I am not using any cache plugin and I am using underscore _s theme….
    Please help…

    • This topic was modified 1 year, 2 months ago by  wpfan1000.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Also added single quotation marks around Open Sans:

    font-family: ‘Open Sans’, Helvetica, Arial, sans-serif;

    Also did not work….

    • This reply was modified 1 year, 2 months ago by  wpfan1000.

    PS do I have to do anything beyond the steps that I did as outlined above?
    eg @import, @font-face, etc?

    Plugin Author asadkn

    (@asadkn)

    Hey,

    I think there’s a bit of misunderstanding about what this plugin is for. It’s for privacy, to comply with EU GDPR/DSGVO laws, and speed. It converts existing Google Fonts enqueues to local server links (Self-Hosted) automatically. Does your theme have Google Fonts enqueued? If not, nothing will happen.

    Hi,
    Thanks for reiterating what this plugin is for.
    It is explained very clearly in the main page of your plugin and I fully understand all the concepts.

    Does your theme have Google Fonts enqueued?

    Thanks for explaining that – I do not have Google Fonts enqueued.

    I thought adding:
    font-family: ‘Open Sans’, Helvetica, Arial, sans-serif;
    was enough for your plugin.
    My bad.

    To be clear then I need to do something like eg:

    function wpb_add_google_fonts() {

    wp_enqueue_style( ‘wpb-google-fonts’, ‘http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,700,300&#8217;, false );
    }

    add_action( ‘wp_enqueue_scripts’, ‘wpb_add_google_fonts’ );

    Is there anything else I need to do?

    Please consider adding an example of what you mean in the main page of the plugin and/or outline all the steps required.

    Also please explain:

    Does the plugin have to be constantly enabled? Or it is ok to just enable it temporarily, so it can do its scan, to convert all Google Font enqueues to locally hosted CSS files?

    If it needs to be constantly enabled, how often is it running? On every page load?

    What is the location of the store of local font files? Is it under eg the current theme? Or is it theme independent?

    Thanks ahead of time…..

    • This reply was modified 1 year, 2 months ago by  wpfan1000.
    • This reply was modified 1 year, 2 months ago by  wpfan1000.
    • This reply was modified 1 year, 2 months ago by  wpfan1000.
    • This reply was modified 1 year, 2 months ago by  wpfan1000.
    • This reply was modified 1 year, 2 months ago by  wpfan1000.
    • This reply was modified 1 year, 2 months ago by  wpfan1000.

    Also I just thought of this:
    I can enqueue fonts by adding code myself, or I presume if I used a Google Fonts plugin or theme that uses the Google fonts servers, then it would enqueu fonts as well.
    So can your plugin be used with such a Google fonts plugin or theme?

    • This reply was modified 1 year, 2 months ago by  wpfan1000.

    When you say:

    Compatible with all themes and plugins.

    Do you mean “Compatible with all themes and plugins that use Google fonts” as well? In other words if I install a Google fonts plugin that uses Google font servers, your plugin will convert it into local hosting?

    Or do you mean in general your plugin works fine with all plugins from a compatibility point of view includng eg all the most popular plugins like Yoast, JetPack, etc??

    • This reply was modified 1 year, 2 months ago by  wpfan1000.
    • This reply was modified 1 year, 2 months ago by  wpfan1000.
    • This reply was modified 1 year, 2 months ago by  wpfan1000.
    • This reply was modified 1 year, 2 months ago by  wpfan1000.
    • This reply was modified 1 year, 2 months ago by  wpfan1000.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Doesn’t seem to be working for me’ is closed to new replies.