Jump to content

I removed right column, how to expand the centre area?


Recommended Posts

This is really weird.

I did this successfully in v1.2.5 by changing this in the global css:

From:

#center_column div.block { width: 536px; margin:auto;}




To:

#center_column div.block { width: 750px; margin:auto;}




However when I tried the same thing in v1.3.1, it no longer works!

Here's my test site:

http://tiny.cc/bdd4e

Any ideas?

I have already removed all blocks from the right column, and changed the Home featured products from 4 to 5.

Link to comment
Share on other sites

ul#product_list {
width:600px;
margin-top: 0em;
list-style-type: none }

ul#product_list li {
font-size:11px;
background: #FFFFFF;
width:31.4%;<------------sets the width of each product
float:left;<-----------------lines them up side by side
min-height: 130px;
height: auto;
margin:5px;}

Link to comment
Share on other sites

Could I ask how you have achieved the more colours in the products list, I would like to add something similar to my site! Would you care to share how you made this possible??

Kind Regards,

Rob


No problems I'll go hunt for the code...give me a minute:)


EDIT:

OK near the top of product-list.tpl, you need this code:

{if $product.description_short}




Multiple colours available!{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}
               {/if}




And then in the short-description enter a space. It's quite a hack actually....the better approach would be to handle this through a flag in the back office, with a proper checkbox. However I'm not a very good coder so this is the best I could come up with. If anyone can come up with a better solution I would love to see it:)

Also if you implement this change be aware that you won't be able to use a short description anymore...

Link to comment
Share on other sites

ul#product_list li {
font-size:11px;
background: #FFFFFF;
width:31.4%;<——————sets the width of each product
float:left;<————————-lines them up side by side
min-height: 130px;<-------Set a min height
height: auto;
margin:5px;}


by setting a min height!

Link to comment
Share on other sites

Ok I just changed it to 23% and that puts 4 columns on, however the height still goes a little bit weird.

Also I changed the width on "#center_column {" to 750px. That fixes the main page, but it also causes problems on the categories page, do you know a better way of doing this?

Link to comment
Share on other sites

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...