• Resolved thasg

    (@thasg)


    While trying to debug an improperly loading webfont on the admin side, I saw in the inspector that admin.tracking.css and the Nunito Sans fonts in three weights (from google) are loaded on every page of the admin regardless of whether related to Video Gallery, adding unnecessary page requests and page weight to the admin area. Nunito is also loaded separately by the free banner, this time included in the plugin.

    Would it be possible to at least restrict the branding logo font – and tracking code for that matter – to only the plugin’s page? Or perhaps to consider using alternative branding means such as an svg or simply a PNG as used elsewhere throughout the plugin.

    I understand you wishing to prevent paid users from using the plugin on more sites than they have paid for, but is it strictly necessary to track this at all on the feature-limited free version of the plugin?

    As you say in your tagline “Details matter” ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Dear thasg ,

    Thanks for your post.
    We can suggest you to apply the following solution but we are not quite sure if it works perfectly at your end.
    In any case, you could try and share your experience here.

    Thus, please, got to
    assets/style/free-banner.css file
    line 1

    and comment this script
    @font-face {
    font-family: nunito;
    src: url(src/Nunito-Light.ttf);
    }

    by adding /* …. */

    It should look like
    /* @font-face {
    font-family: nunito;
    src: url(src/Nunito-Light.ttf);
    } */

    Please apply the same actions in the
    admin.tracking.css file
    line 1

    on the
    @import url(‘https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600’);

    and in the hugeit-modal.css
    line 1

    on the
    @import url(‘https://fonts.googleapis.com/css?family=Nunito:400,600’);

    That’s all! ??
    Please inform us of your results.
    Thanks

    Thread Starter thasg

    (@thasg)

    Hi, Thanks for the speedy reply.
    That would indeed prevent the fonts loading.

    The solution is simpler, though: shift line 45 in class-gallery-video-admin-assets.php that loads admin.tracking.css a few lines further up to line 30/31 (after fontawesome) so that it is together with the other styles that only load on the Gallery Video admin pages. Thereafter your branding assets show properly on the plugin page but are not loaded elsewhere in the WP admin.

    There is a second instance where admin.tracking.css is enqueued on line 67 but as far as I can tell that is restricted only to the plugins page.

    You might nevertheless want to consider consolidating your branding banner fonts as you currently load Nunito Sans from google, Nunito with the plugin and from google and Open Sans from google which is a fair amount for the advertising banners. As far as I can tell, you don’t have different language translations of your banners, so maybe a simple PNG in your desired branding font could replace all the webfonts? Just an idea.

    • This reply was modified 6 years, 10 months ago by thasg.

    Dear thasg,

    Thank you for your kind attention to this matter ??
    We have tested the suggested solution at our end and it worked perfectly.
    We would like to inform that we will include this fix in our upcoming update.

    Again thank you for your cooperation.
    This was a great help in the improvement of the plugin.

    If you have other questions, feel free to contact us again.
    It’s our pleasure to have a deal with you.

    Best Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Tracking code and Nunito fonts loading on every admin page’ is closed to new replies.