Jump to content

Left Column doesnt go up after homefeatured


Recommended Posts

Hi

 

I want to move the left column modules on my home page as after i installed the second homefeatured module it just went down .

 

i have tried editing the global css but without success

 

Can you please help me

My website is : www.hbtmobiles.co.uk

 

Thanks

Link to comment
Share on other sites

Oh man,.... :)

I checked you site and it seems like your containers are a mess.

you have your left & right columns inside your center column (maybe you forget to close the center column div)

even if you close your center column div before the left and/or right column you still need to narrow the width to something like 710px

but... again, you have the product page that is full size... so...

1) why do you need 2 home featured products, if you said that everything worked fine with one, than keep it like that, anyway you can choose in Back Office how many products to show (8,16 etc...)

2) It seems like if you remove the float: left from column left its fix the problem that you have, but..... I need to implant a code that will show it only at home screen, so I guess you can edit your header.tpl from your theme folder and change:

 

 

<div id="left_column" class="column">

 

to:

 

{if $page_name == 'index'}

<div id="left_column" class="column" style="float:none;">

{else}

<div id="left_column" class="column">

{/if}

 

this is not a very good solution but let me know if its working.

Don't forget to disable cache and turning Force compile on in back office and also clear your browser cache (press ctrl+f5 few times).

  • Like 1
Link to comment
Share on other sites

Hi

 

thanks for your reply

 

my header tpl doesnt even have div left column :

 

 

{*

* 2007-2011 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (AFL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:

* http://opensource.org/licenses/afl-3.0.php

* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

* @author PrestaShop SA <[email protected]>

* @copyright 2007-2011 PrestaShop SA

* @version Release: $Revision: 1.4 $

* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)

* International Registered Trademark & Property of PrestaShop SA

*}

 

<!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 name="generator" content="PrestaShop" />

<meta name="robots" content="{if isset($nobots)}no{/if}index,follow" />

<link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}favicon.ico?{$time}" />

<link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico?{$time}" />

<script type="text/javascript">

var baseDir = '{$content_dir}';

var static_token = '{$static_token}';

var token = '{$token}';

var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals};

var priceDisplayMethod = {$priceDisplay};

var roundMode = {$roundMode};

</script>

{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}

<link href="/themes/matrice/css/jquery-ui-1.8.22.custom.css" rel="stylesheet" type="text/css" />

{if isset($js_files)}

{foreach from=$js_files item=js_uri}

<script type="text/javascript" src="{$js_uri}"></script>

{/foreach}

{/if}

 

{$HOOK_HEADER}

</head>

 

<body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}>

{if isset($ad) && isset($live_edit)}

{include file="$tpl_dir./live_edit.tpl"}

{/if}

{if !$content_only}

{if isset($restricted_country_mode) && $restricted_country_mode}

<div id="restricted-country">

<p>{l s='You cannot place a new order from your country.'} <span class="bold">{$geolocation_country}</span></p>

</div>

{/if}

<div class="page">

<div id="top">

<div id="header">

<h1 id="logo">

<a href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}">

<img class="logo" src="{$img_ps_dir}logo.jpg?{$time}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} />

</a>

</h1>

{$HOOK_TOP}

</div>

</div>

<div id="main_center_column">

<!-- Center -->

<div id="center_column">

{/if}

 

 

 

 

 

 

What should i do ?

 

Thanks

Link to comment
Share on other sites

Also I recommend comment out (or delete) lines 126 & 127 in modules/blocktopmenu/css/superfish-modified.css to fix the mouse over on top menu categories.

 

From:

 

padding:8px;

margin-top:6px;

 

To:

 

/* padding:8px;

margin-top:6px;*/

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...