Theme FASHIONISTA error css: //fonts.googleapis.com/css?family=

Hi since the last word press version 4.8–en_AU updates Ive got this error constantly flashing up on the screen css: //fonts.googleapis.com/css?family=
I use WordPress editor Pro and run the latest versions (updates are kept current)

WP Edit info
Plugin and server version information.

WP Edit Pro Version: 4.4.2
WordPress Version: 4.8
PHP Version: 7.0.21
HTML Version: 5.0
MySql Version: 5.5.32
jQuery Version: 1.12.4
Network Activated: No
Multisite Activated: No

can you connect me with the right people to get this fixed

Regards Gary Green

refer:

Hi Gary,

Please post you a question on our support forum and we will answer you as soon as possible.

To post in our forum login to your aThemes account and simply navigate to the relevant sub-forum (theme name), and scroll down until you see the option to post a new topic.

Best regards,
Jovana


Jovana Veljancic
team@athemes.com

Hi,

Please post a link to your website and let me know what fonts are you using, so I can check.

Kind Regards,
Csaba

link has been posted see : http://4cminews.com/?p=33252

see screen capture in editing mode https://www.awesomescreenshot.com/image/2701713/ba25e9d9c1b0e9b28e0f96f26c5a5db8

Hi,

Can you, please check your header.php file and make sure the fonts links in <head> area to have full links to the font family from google, like https://fonts.google

Kind Regards,
Csaba

heres my header.php

<?php
/**

  • The Header for our theme.

  • Displays all of the <head> section and everything up till <div id=“main”>

  • @package aThemes
    */
    ?>
    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <title><?php wp_title( ‘-’, true, ‘right’ ); ?></title>

    <meta charset="<?php bloginfo( ‘charset’ ); ?>">
    <meta name=“viewport” content=“width=device-width”>

    <link rel=“profile” href=“http://gmpg.org/xfn/11”>
    <link rel=“pingback” href="<?php bloginfo( ‘pingback_url’ ); ?>">
    <?php if ( get_theme_mod(‘site_favicon’) ) : ?>
    <link rel=“shortcut icon” href="<?php echo esc_url(get_theme_mod(‘site_favicon’)); ?>" />
    <?php endif; ?>

<?php if ( get_theme_mod(‘apple_touch_144’) ) : ?>
<link rel=“apple-touch-icon” sizes=“144x144” href="<?php echo esc_url(get_theme_mod(‘apple_touch_144’)); ?>" />
<?php endif; ?>
<?php if ( get_theme_mod(‘apple_touch_114’) ) : ?>
<link rel=“apple-touch-icon” sizes=“114x114” href="<?php echo esc_url(get_theme_mod(‘apple_touch_114’)); ?>" />
<?php endif; ?>
<?php if ( get_theme_mod(‘apple_touch_72’) ) : ?>
<link rel=“apple-touch-icon” sizes=“72x72” href="<?php echo esc_url(get_theme_mod(‘apple_touch_72’)); ?>" />
<?php endif; ?>
<?php if ( get_theme_mod(‘apple_touch_57’) ) : ?>
<link rel=“apple-touch-icon” href="<?php echo esc_url(get_theme_mod(‘apple_touch_57’)); ?>" />
<?php endif; ?>

&lt;?php wp_head(); ?&gt;

</head>

<body <?php body_class(); ?>>

&lt;nav id="top-navigation" class="main-navigation" role="navigation"&gt;
	&lt;div class="clearfix container"&gt;
		&lt;?php wp_nav_menu( array( 'container_class' =&gt; 'sf-menu', 'theme_location' =&gt; 'top' ) ); ?&gt;
	&lt;/div&gt;
&lt;!-- #top-navigation --&gt;&lt;/nav&gt;

&lt;header id="masthead" class="clearfix container site-header" role="banner"&gt;
	&lt;div class="site-branding"&gt;
		&lt;?php if ( get_theme_mod('site_logo') ) : ?&gt;
			<a>" title="&lt;?php bloginfo('name'); ?&gt;"&gt;<img />" alt="&lt;?php bloginfo('name'); ?&gt;" /&gt;</a>
		&lt;?php else : ?&gt;			
			&lt;?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?&gt;
			&lt;&lt;?php echo $heading_tag; ?&gt; class="site-title"&gt;
				<a>" title="&lt;?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?&gt;" rel="home"&gt;
					&lt;?php bloginfo( 'name' ); ?&gt;
				</a>
			&lt;/&lt;?php echo $heading_tag; ?&gt;&gt;
			&lt;div class="site-description"&gt;&lt;?php bloginfo( 'description' ); ?&gt;&lt;/div&gt;
		&lt;?php endif; ?&gt;
	&lt;!-- .site-branding --&gt;&lt;/div&gt;

	&lt;?php if ( ! dynamic_sidebar( 'sidebar-2' ) ) : ?&gt;
	&lt;?php endif; ?&gt;
&lt;!-- #masthead --&gt;&lt;/header&gt;

&lt;nav id="main-navigation" class="container main-navigation" role="navigation"&gt;
	<a href="#main-navigation">Menu</a>
	<a href="#">Close</a>
	&lt;?php wp_nav_menu( array( 'container_class' =&gt; 'sf-menu', 'theme_location' =&gt; 'main' ) ); ?&gt;
&lt;!-- #main-navigation --&gt;&lt;/nav&gt;

&lt;div id="main" class="site-main"&gt;
	&lt;div class="clearfix container"&gt;

Hi,

Ok, how I see the code is added to functions.php, not header, from line 162:

if( $headings_font ) {
		wp_enqueue_style( 'athemes-headings-fonts', '//fonts.googleapis.com/css?family='. $headings_font );	
	} else {
		wp_enqueue_style( 'athemes-headings-fonts', '//fonts.googleapis.com/css?family=Oswald:300,400,700');
	}	
	if( $body_font ) {
		wp_enqueue_style( 'athemes-body-fonts', '//fonts.googleapis.com/css?family='. $body_font );	
	}

I guess the code //fonts.googleapis.com/css?family= may allow you to change your headings and body fonts, so please set your fonts for headings and body, then check how it works, if you still get the error, then replace the //fonts.googleapis.com/css?family= links to a specific font and set your fonts of headings and body to that specific font-family.

Kind Regards,
Csaba

here is my function.php "can you please check and write into the coding whats needed so I can just copy and paste the whole coding sequence

<?php
/**

  • aThemes functions and definitions
  • @package aThemes
    */

if ( ! function_exists( ‘athemes_setup’ ) ) :
/**

  • Sets up theme defaults and registers support for various WordPress features.

  • Note that this function is hooked into the after_setup_theme hook, which runs

  • before the init hook. The init hook is too late for some features, such as indicating

  • support post thumbnails.
    */
    function athemes_setup() {

    /**

    • Make theme available for translation
    • Translations can be filed in the /lang/ directory
    • If you’re building a theme based on aThemes, use a find and replace
    • to change ‘athemes’ to the name of your theme in all the template files
      */
      load_theme_textdomain( ‘athemes’, get_template_directory() . ‘/lang’ );

    /**

    • Add default posts and comments RSS feed links to head
      */
      add_theme_support( ‘automatic-feed-links’ );

    // Set the content width based on the theme’s design and stylesheet.
    global $content_width;
    if ( ! isset( $content_width ) ) {
    $content_width = 640; /* pixels */
    }

    /**

    /**

    • This theme uses wp_nav_menu() in one location.
      */
      register_nav_menus( array(
      ‘top’ => __( ‘Top Menu’, ‘athemes’ ),
      ‘main’ => __( ‘Main Menu’, ‘athemes’ ),
      ) );
      }
      endif; // athemes_setup
      add_action( ‘after_setup_theme’, ‘athemes_setup’ );

/**

  • Register widgetized area and update sidebar with default widgets
    */
    function athemes_widgets_init() {
    register_sidebar( array(
    ‘name’ => __( ‘Sidebar’, ‘athemes’ ),
    ‘id’ => ‘sidebar-1’,
    ‘before_widget’ => ‘<aside id="%1$s" class=“widget %2$s”>’,
    ‘after_widget’ => ‘</aside>’,
    ‘before_title’ => ‘<h3 class=“widget-title”>’,
    ‘after_title’ => ‘</h3>’,
    ) );
    register_sidebar( array(
    ‘name’ => __( ‘Header’, ‘athemes’ ),
    ‘id’ => ‘sidebar-2’,
    ‘before_widget’ => ‘<div id="%1$s" class=“widget %2$s”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h3 class=“widget-title”>’,
    ‘after_title’ => ‘</h3>’,
    ) );
    register_sidebar( array(
    ‘name’ => __( ‘Sub Footer 1’, ‘athemes’ ),
    ‘id’ => ‘sidebar-3’,
    ‘before_widget’ => ‘<div id="%1$s" class=“widget %2$s”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h3 class=“widget-title”>’,
    ‘after_title’ => ‘</h3>’,
    ) );
    register_sidebar( array(
    ‘name’ => __( ‘Sub Footer 2’, ‘athemes’ ),
    ‘id’ => ‘sidebar-4’,
    ‘before_widget’ => ‘<div id="%1$s" class=“widget %2$s”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h3 class=“widget-title”>’,
    ‘after_title’ => ‘</h3>’,
    ) );
    register_sidebar( array(
    ‘name’ => __( ‘Sub Footer 3’, ‘athemes’ ),
    ‘id’ => ‘sidebar-5’,
    ‘before_widget’ => ‘<div id="%1$s" class=“widget %2$s”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h3 class=“widget-title”>’,
    ‘after_title’ => ‘</h3>’,
    ) );
    register_sidebar( array(
    ‘name’ => __( ‘Sub Footer 4’, ‘athemes’ ),
    ‘id’ => ‘sidebar-6’,
    ‘before_widget’ => ‘<div id="%1$s" class=“widget %2$s”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h3 class=“widget-title”>’,
    ‘after_title’ => ‘</h3>’,
    ) );
    }
    add_action( ‘widgets_init’, ‘athemes_widgets_init’ );

/**

  • Count the number of footer sidebars to enable dynamic classes for the footer

  • @since aThemes 1.0
    */
    function athemes_footer_sidebar_class() {
    $count = 0;

    if ( is_active_sidebar( ‘sidebar-3’ ) )
    $count++;

    if ( is_active_sidebar( ‘sidebar-4’ ) )
    $count++;

    if ( is_active_sidebar( ‘sidebar-5’ ) )
    $count++;

    if ( is_active_sidebar( ‘sidebar-6’ ) )
    $count++;

    $class = ‘’;

    switch ( $count ) {
    case ‘1’:
    $class = ‘container site-extra extra-one’;
    break;
    case ‘2’:
    $class = ‘container site-extra extra-two’;
    break;
    case ‘3’:
    $class = ‘container site-extra extra-three’;
    break;
    case ‘4’:
    $class = ‘container site-extra extra-four’;
    break;
    }

    if ( $class )
    echo ‘class="’ . $class . ‘"’;
    }

/**

  • Enqueue scripts and styles
    */
    function athemes_scripts() {

    //Load the fonts
    $headings_font = esc_html(get_theme_mod(‘headings_fonts’));
    $body_font = esc_html(get_theme_mod(‘body_fonts’));
    if( $headings_font ) {
    wp_enqueue_style( ‘athemes-headings-fonts’, ‘//fonts.googleapis.com/css?family=’. $headings_font );
    } else {
    wp_enqueue_style( ‘athemes-headings-fonts’, ‘//fonts.googleapis.com/css?family=Oswald:300,400,700’);
    }
    if( $body_font ) {
    wp_enqueue_style( ‘athemes-body-fonts’, ‘//fonts.googleapis.com/css?family=’. $body_font );
    }

    wp_enqueue_style( ‘athemes-symbols’, get_template_directory_uri() . ‘/css/athemes-symbols.css’ );

    wp_enqueue_style( ‘athemes-bootstrap’, get_template_directory_uri() . ‘/css/bootstrap.min.css’ );
    wp_enqueue_style( ‘athemes-style’, get_stylesheet_uri() );

    wp_enqueue_script( ‘athemes-bootstrap-js’, get_template_directory_uri() . ‘/js/bootstrap.min.js’, array( ‘jquery’ ) );
    wp_enqueue_script( ‘athemes-superfish-hoverIntent’, get_template_directory_uri() . ‘/js/hoverIntent.js’, array( ‘jquery’ ) );
    wp_enqueue_script( ‘athemes-superfish’, get_template_directory_uri() . ‘/js/superfish.js’, array( ‘jquery’ ) );
    wp_enqueue_script( ‘athemes-settings’, get_template_directory_uri() . ‘/js/settings.js’, array( ‘jquery’ ) );

    if ( is_singular() && comments_open() && get_option( ‘thread_comments’ ) ) {
    wp_enqueue_script( ‘comment-reply’ );
    }
    }
    add_action( ‘wp_enqueue_scripts’, ‘athemes_scripts’ );

/**

  • Load html5shiv
    */
    function athemes_html5shiv() {
    echo ‘<!–[if lt IE 9]>’ . “\n”;
    echo ‘<script src="’ . esc_url( get_template_directory_uri() . ‘/js/html5shiv.js’ ) . ‘"></script>’ . “\n”;
    echo ‘<![endif]–>’ . “\n”;
    }
    add_action( ‘wp_head’, ‘athemes_html5shiv’ );

/**

  • Footer credits
    */
    function athemes_footer_credits() {
    ?>
    <div class=“site-info”>
    © <?php echo date(‘Y’); ?> <?php bloginfo( ‘name’ ); ?><?php esc_html_e(’. All rights reserved.’, ‘athemes’); ?>
    </div><!-- .site-info -->

    <div class=“site-credit”>
    Fashionista<?php esc_html_e(’ by aThemes’, ‘athemes’); ?>
    </div><!-- .site-credit -->
    <?php
    }
    add_action( ‘athemes_footer’, ‘athemes_footer_credits’ );

/**

  • Custom functions that act independently of the theme templates.
    */
    require get_template_directory() . ‘/inc/extras.php’;

/**

  • Custom template tags for this theme.
    */
    require get_template_directory() . ‘/inc/template-tags.php’;

/**

  • Add social links on user profile page.
    */
    require get_template_directory() . ‘/inc/user-profile.php’;

/**

  • Add custom widgets
    /
    require get_template_directory() . ‘/inc/custom-widgets.php’;
    /
    *
  • Customizer additions.
    /
    require get_template_directory() . ‘/inc/customizer.php’;
    /
    *
  • Dynamic styles
    */
    require get_template_directory() . ‘/styles.php’;

Hi,

Please check line 162, there is the code and you must add the font family code you want to use, from fonts.google.com, select your font and you’ll see the code to add there.

Kind Regards,
Csaba

line 162* really tells me nothing as in wordpress editor it doesnt show line numbers sorry

see screen shot of what we see from the front end https://www.awesomescreenshot.com/image/2710876/148929b668a24c9a5da9e26797f753ed no line numbers we see!!!


here is the coding in the function.php

***** could you write in whats needed, we have not changed any theme settings of any sort since day one so I cant understand why this site has the error, I use this thme on multiple sites and its the only site causing the problem???*************Gary

//Load the fonts
$headings_font = esc_html(get_theme_mod(‘headings_fonts’));
$body_font = esc_html(get_theme_mod(‘body_fonts’));
if( $headings_font ) {
wp_enqueue_style( ‘athemes-headings-fonts’, ‘//fonts.googleapis.com/css?family=’. $headings_font );
} else {
wp_enqueue_style( ‘athemes-headings-fonts’, ‘//fonts.googleapis.com/css?family=Oswald:300,400,700’);
}
if( $body_font ) {
wp_enqueue_style( ‘athemes-body-fonts’, ‘//fonts.googleapis.com/css?family=’. $body_font );
}

wp_enqueue_style( 'athemes-symbols', get_template_directory_uri() . '/css/athemes-symbols.css' );

wp_enqueue_style( 'athemes-bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css' );
wp_enqueue_style( 'athemes-style', get_stylesheet_uri() );

wp_enqueue_script( 'athemes-bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array( 'jquery' ) );
wp_enqueue_script( 'athemes-superfish-hoverIntent', get_template_directory_uri() . '/js/hoverIntent.js', array( 'jquery' ) );
wp_enqueue_script( 'athemes-superfish', get_template_directory_uri() . '/js/superfish.js', array( 'jquery' ) );
wp_enqueue_script( 'athemes-settings', get_template_directory_uri() . '/js/settings.js', array( 'jquery' ) );

if ( is_singular() &amp;&amp; comments_open() &amp;&amp; get_option( 'thread_comments' ) ) {
	wp_enqueue_script( 'comment-reply' );
}

}
add_action( ‘wp_enqueue_scripts’, ‘athemes_scripts’ );

/**

Hi,

In this part of the code:

if( $headings_font ) {
wp_enqueue_style( ‘athemes-headings-fonts’, ‘//fonts.googleapis.com/css?family=’. $headings_font );
} else {
wp_enqueue_style( ‘athemes-headings-fonts’, ‘//fonts.googleapis.com/css?family=Oswald:300,400,700’);
}
if( $body_font ) {
wp_enqueue_style( ‘athemes-body-fonts’, ‘//fonts.googleapis.com/css?family=’. $body_font );
}

replace //fonts.googleapis.com/css?family= with the font you want to use, for example use:

//fonts.googleapis.com/css?family=Oswald:300,400,700 of you don’t know what font you want to use.

so the part of the code should look like this:

if( $headings_font ) {
wp_enqueue_style( ‘athemes-headings-fonts’, ‘//fonts.googleapis.com/css?family=Oswald:300,400,700’. $headings_font );
} else {
wp_enqueue_style( ‘athemes-headings-fonts’, ‘//fonts.googleapis.com/css?family=Oswald:300,400,700’);
}
if( $body_font ) {
wp_enqueue_style( ‘athemes-body-fonts’, ‘//fonts.googleapis.com/css?family=Oswald:300,400,700’. $body_font );
}

if the first won’t work then try like this instead:

if( $headings_font ) {
wp_enqueue_style( ‘athemes-headings-fonts’, ‘https://fonts.googleapis.com/css?family=Oswald:300,400,700’. $headings_font );
} else {
wp_enqueue_style( ‘athemes-headings-fonts’, ‘https://fonts.googleapis.com/css?family=Oswald:300,400,700’);
}
if( $body_font ) {
wp_enqueue_style( ‘athemes-body-fonts’, ‘https://fonts.googleapis.com/css?family=Oswald:300,400,700’. $body_font );
}

Please let me know how it works.

Kind Regards,
Csaba