Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jens

    (@indexlift)

    Okay, thanks.

    Thread Starter Jens

    (@indexlift)

    threadi, thanks for the tip. I have determined the plugin: “Rhythm Addons” as a optional part of the rhythm theme. When i deactivate this plugin, the two lines are no longer included in the html code. I opened all files of the plugin and searched for “fonts.googleapis.com”. In only one file I found what I was looking for – where it says “http” instead of “https”. However, modifying the url to test it did not bring any change. Maybe someone has a tip?

    $id        = ( $id ) ? ' id="'. esc_attr($id) .'"' : '';
      $class     = ( $class ) ? ' '. sanitize_html_classes($class) : '';
      $customize = ($font || $font_color || $letter_spacing || $transform || $font_style || $font_weight || $font_size || $margin_top || $margin_bottom ) ? true:false;
      $output = '';
      if(strpos($font, 'google') !== false) {
        $font_weight_type = ($font_style == 'italic' && $font_weight ) ? $font_weight.$font_style:$font_weight;
        $ifont_name  = str_replace('google_web_font_', '', $font);
        $font_name  = str_replace(' ', '+', $ifont_name);
        $output .=  "<link href='https://fonts.googleapis.com/css?family=".esc_attr($font_name).":".esc_attr($font_weight_type).", 400, 300, 600' rel='stylesheet' type='text/css'>";
      } else {
    	$ifont_name = $font;
      }
Viewing 2 replies - 1 through 2 (of 2 total)