• I want to change:

    <meta name=viewport content=”width=device-width,initial-scale=1,user-scalable=no”>

    to this:

    <meta name=viewport content=”width=device-width,initial-scale=1,maximum-scale=5″>
    <meta name=HandheldFriendly content=true>

    in my header.php in order to satisfy Google Page Speed recommendation but when I go to my file manager and edit the header.php file it only contains this code:

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>”/>

    <link rel=”profile” href=”https://gmpg.org/xfn/11″/&gt;
    <?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>
    <?php endif; ?>

    <?php do_action( ‘stockholm_qode_action_header_meta’ ); ?>

    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
    <?php
    /*
    * @hooked stockholm_qode_include_preloader
    * @hooked stockholm_qode_include_sidearea
    */
    do_action( ‘stockholm_qode_action_before_page_wrapper’ ); ?>
    <div class=”wrapper”>
    <div class=”wrapper_inner”>
    <?php
    /*
    * @hooked stockholm_qode_include_vertical_header_area
    * @hooked stockholm_qode_include_popup_area
    * @hooked stockholm_qode_include_popup_subscribe_area
    * @hooked stockholm_qode_include_fullscreen_search_area
    * @hooked stockholm_qode_include_paspartu_area
    * @hooked stockholm_qode_include_back_to_top
    */
    do_action( ‘stockholm_qode_action_before_page_header’ );

    get_template_part( ‘framework/modules/header/templates/header-area’ );
    ?>

    <div class=”<?php echo esc_attr( apply_filters( ‘stockholm_qode_filter_content_classes’, ‘content’ ) ); ?>”>
    <?php do_action( ‘stockholm_qode_action_after_content’ ); ?>

    <div class=”<?php echo esc_attr( apply_filters( ‘stockholm_qode_filter_content_inner_classes’, ‘content_inner’ ) ); ?>”>
    <?php do_action( ‘stockholm_qode_action_after_content_inner’ ); ?>

    <?php get_template_part( ‘title’ ); ?>
    <?php get_template_part( ‘slider’ ); ?>

    Where is the code that I clearly see on Google Pagespeed Insights

    <!DOCTYPE html>
    <html lang=el>
    <head>
    <meta charset=UTF-8>
    <link rel=profile href=https://gmpg.org/xfn/11>
    <meta name=viewport content=”width=device-width,initial-scale=1,user-scalable=no”>
    <link rel=”shortcut icon” type=image/x-icon href=https://mlvoi78o3uwm.i.optimole.com/atWThhw–BPZTuou/w:auto/h:auto/q:auto/https://www.psychologos-giannopoulou.gr/wp-content/uploads/2020/07/favicon-32×32-1.png>
    <link rel=apple-touch-icon href=https://mlvoi78o3uwm.i.optimole.com/atWThhw–BPZTuou/w:auto/h:auto/q:auto/https://www.psychologos-giannopoulou.gr/wp-content/uploads/2020/07/favicon-32×32-1.png>
    <title>Ψυχολ?γο? Περιστ?ρι, Κωνσταντ?νια Γιαννοπο?λου</title> etc

    located ??? And how can I access it-edit it?

    Thanx in advance
    Constantenia

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hmmm, which header.php file are you looking at?

    This is what I see in /wp-content/themes/header.php:

    <head>
    	<meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">  
        <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>" charset="<?php bloginfo('charset'); ?>" />
    	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>"/>
    	<title><?php wp_title( '|', true, 'right' ); ?></title>
    	<?php $wl_theme_options=get_option('enigma_options_pro'); ?>
    	<?php if($wl_theme_options['upload_image_favicon']!=''){ ?>
    	<link rel="shortcut icon" href="<?php  echo $wl_theme_options['upload_image_favicon']; ?>" /> 
    	<?php } ?>	
    	<?php wp_head(); ?>
    </head>
    Thread Starter constangiann

    (@constangiann)

    Strange! I don’t see a header.php in my “/wp-content/themes/” folder. The header I posted is at my “/wp-content/themes/stockholm” …Stockholm is my parent theme . I am using a child theme along with W3 total cache …how did you find that? where?

    I assume that was yours right?

    I am getting a 98% at gt metrix and other sites but just a 25% at google pagespeed insights mobile and I am so frustrated…any help would be appreciated. I am not a developper.. Just having my own site which goes pretty well for about 3 years now but google suddenly changed algorithms and announced they are going to drop down rankings if we dont meet the pagespeed insights criteria

    • This reply was modified 4 years, 4 months ago by constangiann.
    • This reply was modified 4 years, 4 months ago by constangiann.

    I’m so sorry. I found that header file in my dev site which is has a lot of junk in it. I went to one of my new sites and found only one header.php in the parent theme folder (e.g. /wp-content/themes/parent_theme/header.php). I use genesis themes so their head code is imported from other folders.

    Looking at your code again, I am guessing that the meta tag you are looking for comes from this line of code:

    <?php do_action( ‘stockholm_qode_action_header_meta’ ); ?>

    Do you have any doc for your theme? Otherwise you’ll have to dig around in other folders such as include or lib.

    Thread Starter constangiann

    (@constangiann)

    Tim,

    Thank you for your interest. I’ve come to a conclusion that my google pagespeed problems are mainly from my theme-builder and a couple of plugins so I decided to do a rebuild of the whole website (on a staging environment for now) using Astra theme and mainly if not exclusively Gutenberg blocks (my site is pretty simple to be slow and I think I can do it). I am in the middle of it but I hope that settles the issue with the header too :). What do you think?

    Thanx again

    • This reply was modified 4 years, 4 months ago by constangiann.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Header Issue’ is closed to new replies.