• I see it´s a problem that the author has been taking for 3 years. He doesn´t solve.

    I thought it was a problem of ‘child theme’ per call ‘@import’ instead of ‘enqueue’. Then I corrected.

    Still, I saw that the problem persisted in Internet Explorer 8. In my web the top banner is seen. The menu is seen because I included a code that someone offered in the forum (I copy all ‘header.php’ on the ‘child theme’ because I didn’t knew command call). And the image on the left is adjusted to the appropriate size now because I included other code in the top of the head. Code found in the version of WordPress.com of this theme.

    I believe that a market share of 19% worldwide of use, isn´t something to be underestimated. I wonder if the author will solve some day or … have to change the ‘Oxygen theme’ other working properly?

    The codes that stick before ending tag </ head>:

    <?php
    /**
     * Header Template
     *
     * The header template is generally used on every page of your site. Nearly all other templates call it
     * somewhere near the top of the file. It is used mostly as an opening wrapper, which is closed with the
     * footer.php file. It also executes key functions needed by the theme, child themes, and plugins.
     *
     * @package Oxygen
     * @subpackage Template
     */
    ?>
    <!doctype html>
    <!--[if IE 8]>
    <html id="ie8" lang="es-ES">
    <![endif]-->
    <!--[if !(IE 8)]><!-->
    <html lang="es-ES">
    <html <?php language_attributes(); ?>>
    <!--<![endif]-->
    <head>
    	<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
    	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    
    	<!-- Mobile viewport optimized -->
    	<meta name="viewport" content="width=device-width,initial-scale=1">
    
    	<?php if ( hybrid_get_setting( 'oxygen_favicon_url' ) ) { ?>
    		<!-- Favicon -->
    		<link rel="shortcut icon" href="<?php echo hybrid_get_setting( 'oxygen_favicon_url' ); ?>" />
    	<?php } ?>
    
    	<!-- Title -->
    	 <title><?php wp_title(); ?></title>
    
    	<link rel="profile" href="http://gmpg.org/xfn/11" />
    	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    
    	<!-- WP Head -->
    	<?php wp_head(); ?>
    
    	<!--[if IE 8]>
     <style>
      .site-navigation .nav-menu { display: block; }
     </style>
    <![endif]-->
    
    <!--[if lt IE 9]>
    <script src="https://s0.wp.com/wp-content/themes/pub/oxygen/js/html5.js" type="text/javascript"></script>
    <![endif]-->
    
    </head>

    I consider this matter of concern should be resolved by the author of the Oxygen theme. I when I made a design from scratch in HTML and CSS (examples: Juan Grande or Proyecto Rubare), touched me worry because everything correctly see in Internet Explorer, which is a headache for designers and programmers.

    The page where I check if it works well or not Internet Explorer 8 is this:
    http://netrenderer.de/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Putting aside the fact that Internet Explorer 8 compatibility shouldn’t be a driver (as people should not continue to hurt themselves using that browser) why can’t you make that substitution of the header.php in your own child theme?

    Thread Starter Joan Morci

    (@joanmor)

    Hi Jan,

    I’m not a programmer, designer only. I try to learn something basic. I don´t know what order to do call in the child theme to ‘header.php’ to read the parent theme. I did know orders in ‘style.css’ and ‘functions.php’ because I look at ‘AyudaWP’ web.

    I think very well tell 19% of people don´t use that browser and instead use other … but people don´t understand, is comfortable and doesn´t like complications. Then they continue to use what comes from factory.

    It is a high percentage of lost people.

    Using IE8 might get you hacked, upgrade to latest version for your own sake.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    It’s just that there’s a very little chance of any theme on WordPress.org being updated to support Internet Explorer 8. I would say that the odds are slightly greater than zero.

    So many sites will break on that version of the browser, it does not make any sense to perpetuate such an old browser.

    If 19% of your visitors are using Internet Explorer 8 then it really is up to you to sort that out for your site which you can easily do by creating and activating a child theme of Oxygen.

    https://codex.wordpress.org/Child_Themes

    Once that child theme is activated then copy the original header.php into your child theme directory and make the edits as you see fit to that copy.

    Internet Explorer may have 19% market share (I don’t even think it’s that high anymore). IE8 is much, much lower. Theme designers should not be checking compatibility for 4 versions of a browser.

    If IE8 has 19% on your own site, you should add compat code in your child theme. Here’s the best place to start: https://codex.wordpress.org/Child_Themes

    Edit: Sorry, looks like Jan beat me to linking up the child theme article.

    Thread Starter Joan Morci

    (@joanmor)

    Hi guys!

    I appreciate the information, but really all you tell me what I already have. ‘AyudaWP‘ is a very good site in Spanish to help the WordPress community and your information is extracted from the official website WordPress.org (‘codex’ too).

    While I’ve seen that on 12 January this year Microsoft indicated retirement updates for Internet Explorer 8, 9, 10.

    I didn´t see before the news, because after updating the codex on January 27, someone commented some things…

    I’m not asking as a child theme is because it’s something I already did. Before I had the old way (@import) and now the modern and official (enqueue).

    The point is that when spoke of this change (old / modern) in some websites, said it was necessary because load speed improvements and because supposedly @import looked bad in ‘Internet Explorer 8’.

    I checked this and it was no problem @import, but the ‘parent theme,’ because in fact I have two websites with WordPress, created with ‘theme child’ old and look good in Internet Explorer 8, they are optimized. By example: Universo Outcast Spain.

    ashiquzzaman

    I don´t use anything about Internet Explorer and tell employees not to use it, but the last word is them.

    Jan Dembowski

    Thanks for the link, maybe I didn´t explain well but I had already done before the process that you indicate.

    Justin Tadlock

    I don´t understand what you mean by ‘compat code’.

    In ‘child theme’ I have:

    ‘Functions.php’ (enqueue)

    <?php // Oxygen hijo - Funciones personalizadas (gracias a AyudaWP)
    
    // enqueue estilos para el tema padre
    function example_enqueue_styles() {
    
    	// enqueue de los estilos del tema padre
    	// https://codex.wordpress.org/Function_Reference/wp_enqueue_style
    	// wp_enqueue_style( $handle, $src, $deps, $ver, $media )
    	wp_enqueue_style('oxygen', get_template_directory_uri() .'/style.css');
    	wp_enqueue_style('oxygen', get_template_directory_uri() .'/style.min.css');
    	// enqueue de estilos del tema hijo
    	// wp_enqueue_style('oxygen-hijo', get_stylesheet_directory_uri() .'/style.css', array('oxygen'));
    	// wp_enqueue_style('oxygen-hijo', get_stylesheet_directory_uri() .'/style.min.css', array('oxygen'));
    
    }
    add_action('wp_enqueue_scripts', 'example_enqueue_styles');

    ‘style.css’

    /*
    Theme Name: Oxygen hijo
    Template: oxygen
    
    Theme URI: http://alienwp.com/themes/oxygen/
    Description: Tema hijo de Oxygen para hacer cambios sin riesgo
    Version: 0.5.7
    Author: AlienWP
    Author URI: http://alienwp.com
    Tags: flexible-width, theme-options, threaded-comments, microformats, translation-ready, rtl-language-support, three-columns, right-sidebar, left-sidebar, custom-background, featured-images
    License: GNU General Public License v2.0
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    */

    ‘screenshot.png’

    ‘header.php’ (it´s the only file where I copy everything that was in the ‘parent theme’ and add the rules for ‘ie’)

    My complaint isn´t related to the ‘child theme’ that is already done.

    Greetings!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Theme isn't displayed correctly in Internet Explorer 8 (used 19%)’ is closed to new replies.