• Resolved mhummels

    (@mhummels)


    In the general tab of the photo gallery settings is an option called “Enable Google fonts”. Since google fonts is hugely discussed in terms of GDPR, I want to deactivate it entirely for the page. However setting the option to “No” has no effect, since google font is still included into the website. If I deactivate the photo gallery plugin, it is gone. So please fix this option or include the font into the plugin itself, as it is recommended anyway by wordpress.

Viewing 7 replies - 1 through 7 (of 7 total)
  • If I remember correctly, I had the same problem too. I then deactivated Google Fonts again in various places in the Photo Gallery themes.

    Thread Starter mhummels

    (@mhummels)

    Thank you for that tip. That is a whole lot of radio buttons that needed to be adjusted. I now have opted for standard fonts on each font setting for both themes but the google fonts link is still included in my page. The global setting also still is “No google fonts”. Any further ideas?

    Thread Starter mhummels

    (@mhummels)

    I found the reason for this issue. It is not about the google font configured in the Themes or in the general settings. In the /booster/main.php in line 195 there is a hardcoded google font register style for Open Sans which is creating this issue.

    See the register_scripts() function in main.php. As soon as I comment the line, no google font gets included in my page anymore:

    public function register_scripts( ) {
        $required_scripts = array( 'jquery' );
        $required_styles = array( 'twb-open-sans' );
        //wp_register_style('twb-open-sans', 'https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,600,700,800&display=swap');
        wp_register_style(self::PREFIX . '-global', $this->plugin_url . '/assets/css/global.css', $required_styles, self::VERSION);
        if ( $this->cta_button['button_color'] || $this->cta_button['text_color'] ) {
          $cutom_css = "
            #wp-admin-bar-booster-top-button a.ab-item, 
            #wp-admin-bar-twb_adminbar_info .twb_admin_bar_menu_header:not(.twb_not_optimized), 
            #wp-admin-bar-booster-top-button a.ab-item:hover,
            #wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-booster-top-button:hover>.ab-item {
              background-color: " . $this->cta_button['button_color'] . " !important; 
              color: " . $this->cta_button['text_color'] . " !important;
          }";
          wp_add_inline_style(self::PREFIX . '-global', $cutom_css);
        }
        wp_register_script(self::PREFIX . '-circle', $this->plugin_url . '/assets/js/circle-progress.js', $required_scripts, '1.2.2');
        array_push($required_scripts, self::PREFIX . '-circle');
        wp_register_script(self::PREFIX . '-global', $this->plugin_url . '/assets/js/global.js', $required_scripts, self::VERSION);
        wp_localize_script(self::PREFIX . '-global', 'twb', array(
          'nonce' => wp_create_nonce('twb_nonce'),
          'ajax_url' => admin_url('admin-ajax.php'),
          'plugin_url' => $this->plugin_url,
          'href' => $this->submenu_url,
        ));
      }
    • This reply was modified 1 year, 1 month ago by mhummels.

    You also need to do this for the lightbox, navigation, etc.

    Since you never really know at the moment which plugins still load Google Fonts even if you don’t need them, I installed the Borlabs Font Blocker plugin to be on the safe side. Since then there has been absolute peace. Here is the link to download:
    https://borlabs.io/borlabs-font-blocker/

    Thread Starter mhummels

    (@mhummels)

    Even with adjusting the fonts in every single theme and also in every single tab still the google fonts are getting included.

    The font blocker plugin did the trick, thank you very much.

    That pleases me. I hope that the manufacturer fixes the bug and perhaps, as intended by WordPress, keeps the fonts available locally if necessary.

    Plugin Support Kima Baghdasaryan

    (@kimabaghdasaryan)

    Hi,

    We sincerely apologize for the delayed response to your recent inquiry. Our development team has been investigating the issue you reported, and we appreciate your patience in this matter.

    I’m pleased to inform you that our development team has identified the issue and has created a task to address it promptly. Rest assured, the problem you encountered will be resolved in our future updates.

    Thank you for bringing this matter to our attention, and please accept our apologies for any inconvenience this may have caused. If you have any further questions or concerns, please don’t hesitate to reach out to us.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Google Fonts Setting has no effect’ is closed to new replies.