Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Removing line breaks from sidebar?

Removing line breaks from sidebar?

Locked

Views: 1,045

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
11 Feb 2010, 11:08 PM
#1
khanse44 avatar

khanse44

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Removing line breaks from sidebar?

Guys, the tutorials and this forum have been super helpful in my first venture into Zen Cart and I believe I'm down to my final bug for the fish store.

How do I remove the line breaks between the categories? I modified the tpl_categories.php and was able to remove them from the information links, but not the categories. Any ideas? Also on a sort of related note, stupid IE isn't displaying the sidebar properly. The links are showing up red & blue instead of black with a black border.

12 Feb 2010, 10:55 AM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Removing line breaks from sidebar?

It's the display:block; in #sideboxContent a that's doing that.

If you want to have all the boxes the same width, the easiest way I've found is to install this mod: http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1307 and style it as a list.

12 Feb 2010, 5:41 PM
#3
khanse44 avatar

khanse44

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Re: Removing line breaks from sidebar?

Great, thanks!

17 Feb 2010, 5:07 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Removing line breaks from sidebar?

Just be aware that that mod makes one continuous <ul> list, regardless of subcategory depth, so you will be unable to style sub-subcats differently if you want to. It won't generate an HTML error, but it is semantically incorrect if you have any subcategories.

17 Feb 2010, 6:18 PM
#5
khanse44 avatar

khanse44

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Re: Removing line breaks from sidebar?

Yea, I know, but the person I'm helping with the site doesn't want subcategories to show at all in the sidebar so that shouldn't be a problem.

17 Feb 2010, 7:46 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Removing line breaks from sidebar?

Right you are, for your site:)