Jump to content

[SOLVED] CSS(?) broken


Recommended Posts

I mean "head" section. I've just made a test and delete

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 lt-ie6 " lang="en"> <![endif]-->
<!--[if IE 7]>	<html class="no-js ie7 lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>	<html class="no-js lt-ie9 ie8" lang="en"> <![endif]-->
<!--[if gt IE 8]> <html lang="fr" class="no-js ie9" lang="en"> <![endif]-->

from header.tpl and my site looks like yours. I suppose that's the reason.

Link to comment
Share on other sites

line

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

already is in your header.tpl. As I can see you changed something in your theme, that line is at beginning, head section is complete and site looks OK in FF and IE.

Link to comment
Share on other sites

This is thebeginning of the file

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}">
<head>
	<title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
{if isset($meta_description) AND $meta_description}
	<meta name="description" content="{$meta_description|escape:html:'UTF-8'}" />
{/if}
{if isset($meta_keywords) AND $meta_keywords}
	<meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" />
{/if}
	<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
	<meta http-equiv="content-language" content="{$meta_language}" />
	<meta name="generator" content="PrestaShop" />
	<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />

How should it look?

I did try another theme, something like 2 weeks before this stopped working. Apart from that, I've only changed CSS stuff.

 

Edit: BTW, $meta_language seems weird, it holds the value "en-sv"

 

/Mats

Edited by mohsart (see edit history)
Link to comment
Share on other sites

That file is OK. But about one hour ago I visited your site and used firebug. The code was messy. I didn't make screenshot but everything what should be in "head" section was in "body". So I suppose IE didn't recognize your site correctly. Did you change something during last hour?

Link to comment
Share on other sites

Lovely! Fixed!

For others:

I changed win=1; to win=0; since I have a linux host.

Ran the scrips, got

These files have UTF8 BOM:

 

/home/virtual/mohsart.se/public_html/handkraft/js/jquery/plugins/jquery.validate-creditcard.js

/home/virtual/mohsart.se/public_html/handkraft/goadmin/ajaxfilemanager/jscripts/edit_area/langs/ja.js

/home/virtual/mohsart.se/public_html/handkraft/mails/en/order_conf.txt

/home/virtual/mohsart.se/public_html/handkraft/mails/it/order_conf.txt

/home/virtual/mohsart.se/public_html/handkraft/mails/de/order_conf.txt

/home/virtual/mohsart.se/public_html/handkraft/mails/sv/guest_to_customer.txt

/home/virtual/mohsart.se/public_html/handkraft/mails/sv/contact_form.txt

/home/virtual/mohsart.se/public_html/handkraft/themes/default/lang/sv.php

/home/virtual/mohsart.se/public_html/handkraft/classes/Tools.php

 

Downloaded these, opened in notepad++, changed format from UTF-8 to ANSI, saved and uploaded.

 

I am a tad bit interested in why those files had changed, but main thing is that NOW IT WORKS :-)))

 

Thank you sooo much, sebkos!

 

/Mats

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...