retrospecter Posted July 24, 2008 Share Posted July 24, 2008 Hi everyone, Could you be so kind to help me with a problem with the css and internet explorer 6 ??.My shop is perfect under Firefox, Safari, Opera and even Internet explorer 7, but in the Internet Explorer 6 it get decentered in every place. My css has lot of modifications to have a personalized theme, very different from the standard css of prestashop. I have prepared another modified css ready to be used on Internet Explorer 6, and now I need to apply a hack, in order to recognize the browser. So if the browser is firefox, safari, opera o internet explorer 7, global.css is loaded, and if internet explorer 6 is the browser the ie6_global.css is loaded.Under Html I add index.html in the head <!--[if IE 6]> <link href="ie6_global.css" rel="stylesheet" type="text/css"> but here in prestashop I do not know how to do this, Which is th file I have to add in the code? Is this same file or it has to be another different file?The website is the following: http://retrospecter.es/shop/Many thanks for your great help, Link to comment Share on other sites More sharing options...
shake Posted July 24, 2008 Share Posted July 24, 2008 in themes/theme/header.tpl <!--[if lte IE 6]> <link href="/themes/yourtheme/css/ie6_only.css" rel="stylesheet" type="text/css"> just after the line where your main css is called Link to comment Share on other sites More sharing options...
shake Posted July 24, 2008 Share Posted July 24, 2008 i put mine after this line when i tested it: {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" /> {/foreach} Link to comment Share on other sites More sharing options...
retrospecter Posted July 24, 2008 Author Share Posted July 24, 2008 Hello shake.I tried with this but don't work: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}"> <head> <base href="{$protocol}{$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$base_dir}" /> <title>{$meta_title|escape:'htmlall':'UTF-8'}</title> {if isset($meta_description)} <meta name="description" content="{$meta_description|escape:htmlall:'UTF-8'}" /> {/if} {if isset($meta_keywords)} <meta name="keywords" content="{$meta_keywords|escape:htmlall:'UTF-8'}" /> {/if} <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" /> <link rel="shortcut icon" href="{$img_dir}favicon.ico" /> {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" /> <!--[if lte IE 6]> <link href="/themes/retro/css/ie6_only.css" rel="stylesheet" type="text/css"> {/foreach} {/if} //global JS variable var baseDir = '{$base_dir}'; var static_token = '{$static_token}'; var token = '{$token}'; {if isset($js_files)} {foreach from=$js_files item=js_uri} {/foreach} {/if} {$HOOK_HEADER} </head> <body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}> <!-- Header --> {$HOOK_TOP} <!-- Left --> {$HOOK_LEFT_COLUMN} <!-- Center --> Link to comment Share on other sites More sharing options...
shake Posted July 24, 2008 Share Posted July 24, 2008 try it after the closing if statement : {/if} <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" /> <link rel="shortcut icon" href="{$img_dir}favicon.ico" /> {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" /> {/foreach} {/if} <!--[if lte IE 6]> <link href="/themes/retro/css/ie6_only.css" rel="stylesheet" type="text/css"> Link to comment Share on other sites More sharing options...
shake Posted July 24, 2008 Share Posted July 24, 2008 just seen your site, in your case it would be :<!--[if lte IE 6]> <link href="/shop/themes/retro/css/ie6_only.css" rel="stylesheet" type="text/css"> so you probably dont have to change it from my previous post, just add /shop to the css location Link to comment Share on other sites More sharing options...
retrospecter Posted July 24, 2008 Author Share Posted July 24, 2008 Not work. What plus I can do? You have some idea more?Thanks Link to comment Share on other sites More sharing options...
shake Posted July 24, 2008 Share Posted July 24, 2008 try changing it so that the ie6 css file is the main one for the whole site, to make sure that all the css is working ok for ie6.backup your css files, then rename ie6_global.css to global.css Link to comment Share on other sites More sharing options...
ejectcore Posted July 24, 2008 Share Posted July 24, 2008 Hello RetrospecterVery impressive theme seems like you just have a few css issues to resolveI can take a look at this for you & probably fix, but I will need you to first PM FTP details/backoffice ;-) Link to comment Share on other sites More sharing options...
ejectcore Posted July 24, 2008 Share Posted July 24, 2008 shake solution was actually correct but you probably copied directly from his last postthe issue was infact with the speach marks this doesn't work ” this one does " it seems to now take notice of ie6_global.css ;-)although where did you get ie6_global.css from ???personelly I would of just created a few hacks within global.cssnot sure the products are displaying correctly but the banner is fixed.let me know if they display your end ;-) <!--[if lte IE 6]> <link href="/shop/themes/retro/css/ie6_global.css" rel="stylesheet" type="text/css"> Link to comment Share on other sites More sharing options...
retrospecter Posted July 24, 2008 Author Share Posted July 24, 2008 I duplicated global.css and modique to be fitting for IE6, not yet is finished. Single I modified a part.It did not know like making load ie6_global.css. The greater problemof misalignment is in "featured products module".baner of head now I see it correct therefore it will remain finally. Link to comment Share on other sites More sharing options...
ejectcore Posted July 24, 2008 Share Posted July 24, 2008 I will look into the css in ie6_global.css later on tonight & fix this issue for you.going down the route of IE6 hacks in a seperate style sheet will cause problemsThe hacks can easly be done within global.css.I will let you know when complete ;-) Link to comment Share on other sites More sharing options...
retrospecter Posted July 24, 2008 Author Share Posted July 24, 2008 Thank you very much by its great aid. Link to comment Share on other sites More sharing options...
Recommended Posts