I am doing some browser testing from a friend on the following website. It appears to be centering on every browser accept IE.
Please could you advise me how we fix this please. As im unaware of how this has been coded.
thanks
UPDATE:
<!doctype html>
<!--[if IEMobile 7 ]><html <?php language_attributes(); ?>class="no-js iem7"> <![endif]-->
<!--[if lt IE 7 ]><html <?php language_attributes(); ?> class="no-js ie6 oldie"> <![endif]-->
<!--[if IE 7 ]><html <?php language_attributes(); ?> class="no-js ie7 oldie"> <![endif]-->
<!--[if IE 8 ]><html <?php language_attributes(); ?> class="no-js ie8 oldie"> <![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!-->
<html <?php language_attributes(); ?> class="no-js"><!--<![endif]-->
<head>
<meta charset="utf-8">
<!--[if ie]><meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'/><![endif]-->
<title><?php wp_title( ' - ', true, 'right' ); ?> <?php bloginfo('name'); ?></title>
<?php if ( of_get_option('sc_enablemeta')== '1') { ?>
<!-- meta -->
<meta name="description" content="<?php echo of_get_option('sc_metadescription') ?>">
<meta name="keywords" content="<?php wp_title(); ?>, <?php echo of_get_option('sc_metakeywords') ?>" />
<meta name="revisit-after" content="<?php echo of_get_option('sc_revisitafter') ?> days" />
<meta name="author" content="www.site5.com">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<?php } ?>
<?php if ( of_get_option('sc_enablerobot')== '1') { ?>
<!-- robots -->
<meta name="robots" content="<?php echo of_get_option('sc_metabots') ?>" />
<meta name="googlebot" content="<?php echo of_get_option('sc_metagooglebot') ?>" />
<?php } ?>
<!-- icons & favicons (for more: http://themble.com/support/adding-icons-favicons/) -->
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/library/js/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
<!-- wordpress head functions -->
<?php wp_head(); ?>
<!-- end of wordpress head -->
This is the header doc… and it doesnt look like a WP header call… can someone help me rearrange slightly to accommodate old IE please…
After our talk on chat the case seems to be the following:
Code is injected in the head of your page.
Debugged:
Your template is clean, we checked that.
You disabled all plugins.. the injected links are still there.
We checked the root index.php, no nasty code was injected there.
Probable cause:
At some point a bad plugin was installed that manipulated the wordpress source code.
Solution:
– Put the old wordpress environment in a safe location.
– Copy a new wordpress to your environment.
– Copy the wp-config from the old wordpress to the new one (but check it to see if there are no strange lines of code in wp-config).
– Copy the template to the new environment and check.
– Copy the plugins back one by one, activate and check if your output is broken.
Hopefully you will find the culprit.