Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / remove space from page

remove space from page

Views: 1,208

Results 1 to 18 of 18
24 Jan 2012, 4:29 PM
#1
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

remove space from page

I am using barebones template.

On my sub-category list page, I have a large space between the heading and the list.
I have identified that it is a space that I need to remove.

div id="indexProductListCatDescription" class="content"> </div>

I think the page is \includes\templates\barebones\templates\tpl_index_product_list.php but I cannot find where the space is inserted.

How can I remove this space

thank you
Ivanna

24 Jan 2012, 5:02 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: remove space from page

It'll help to see the page in question.

24 Jan 2012, 5:20 PM
#4
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: remove space from page

Steve,
do you also need information from firebug or can you see that also?

thank you
Ivanna

24 Jan 2012, 5:42 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: remove space from page

You could add something like this to the stylesheet:

#indexProductListCatDescription {display: none;}

#productListHeading {margin: 0;}

24 Jan 2012, 5:56 PM
#6
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: remove space from page

I added it at the end of CSS file but it did not work.

Ivanna

24 Jan 2012, 6:50 PM
#7
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: remove space from page

Steve,,
I have found the space. Edit mode for the sub-category page, change edit mode to html and remove  

thank you
Ivanna

24 Jan 2012, 7:01 PM
#8
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: remove space from page

I thought it worked but now the space is always replaced with a break < /b>

24 Jan 2012, 7:15 PM
#9
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: remove space from page

Ivanna:

Steve,,
I have found the space. Edit mode for the sub-category page, change edit mode to html and remove  

thank you
Ivanna

Undo that, and try

#indexProductListCatDescription {
margin: -20px 0 0 0;
}

24 Jan 2012, 8:08 PM
#10
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: remove space from page

#navColumnOne, #navColumnTwo {
background-color: transparent;
padding-top: 10px;
}

24 Jan 2012, 8:17 PM
#11
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: remove space from page

I also think something strange is happening because all categories show "add selected products to cart" except Breast Cancer Earrings and Inspirational Earrings. I thought this is a global setting.

I have looked at edit mode for these pages and it all looks the same. I do not know if I do something wrong or if the installation is wrong.

Must I reinstall Zen-Cart

24 Jan 2012, 8:20 PM
#12
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: remove space from page

Sorry wrong space.

25 Jan 2012, 1:57 AM
#13
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: remove space from page

admin configuration product layout Display Product Price/Add to Cart

set to 0

25 Jan 2012, 5:44 PM
#14
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: remove space from page

Hello usernamenone,
I changed this from 3 to 0 and it worked but it also made another problem.

When it was 3, it showed price, buy now, Units:, Max: on the right side. Now it does not show them if I change to 0.

If I change to 1 or 2, price, buy now, Units:, Max:, they show on the left side between the image and the description.

It seems these numbers have style quality to move positions. Is there a description of these numbers somewhere? I cannot find it.

I wanted to get rid of buy now, Units:, Max: and this is the only way I have found to do it although, I am sure, it is not the correct way. What is the correct way to do it? I have looked all over the tutorials but did not find anything.

Also, when I changed from 3 to 0, a dropdown showed a previous number 0102. So is it possible to have more than one number?

Is there documentation for these numbers?

thank you
Ivanna

25 Jan 2012, 7:31 PM
#15
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: remove space from page

Product Listing

with your price/add to cart set at 2 the price will still be there

Are you taking about quantity numbers? Same place under Product Listing

Display Product Quantity

set to 1 it will show left of the image set to 2 it is set to the right of description and will still show on product info set to 0 it won't show anywhere.

I may be wrong but I don't think there is a way to turn off quantity on listing and not on info without custom alterations.

25 Jan 2012, 8:27 PM
#16
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: remove space from page

Hello usernamenone,
I am speaking about Value numbers. You said 0=off, 1=left, 2=right. Ok, I understand that now but when I edit on the right side, if I put one in the quantity field, it shows a selection of other numbers starting with 1, like 1111 and 1102.

My question is, what are the other numbers for? are they also for position? These numbers were already here so I did not mess with it before. There is no documentation for these numbers, only what you tell me. Did you read it somewhere or is it experience?

thank you for helping me
Ivanna

25 Jan 2012, 9:58 PM
#17
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: remove space from page

is there a link to the page that behaves that way. I put 1 in the cart and 1 added to cart without any other numbers showing.

25 Jan 2012, 10:31 PM
#18
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: remove space from page

No, there is no link. This is in Admin/Configuration/Product Listing/Display Product Quantity - edit on the right side.

I have looked at other pages and some show one or two numbers, others none. I think it is actually a history, but not mine :no:

There is only my boss and he would not touch it or my client who is not supposed to touch any of that, only add products.

It does not matter. It is sorted. Your suggestion worked. Thank you.

Ivanna