Zen Cart Logo

Breadcrumb Nav 100%

Views: 1,173

Results 1 to 15 of 15
19 Sep 2011, 7:36 AM
#1
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Breadcrumb Nav 100%

Hi I have googled and searched forum to find out how to make the navbarBreadcrumb fit 100% of the page and sit above the left and right sideboxes.

I did find one mention of customising tpl_main_page.php and have looked at this file but most of it I cant understand.

Site ishttp://www.fusionherbsorganics.com.au/index.php?main_page=index&cPath=1

I am also trying to get the images in the left sidebox to be centred.
I understand that I am meant to target .sideBoxContentItem a img and this class does not exist in stylesheet .. so should I make it up/add it? I use firefox developers toolkit with the outline>current element to find the names of the various elements.

Is this the convention for styling in the stylesheet when the class does not exist? Have I confused myself .. it wouldnt be the first time lol.

Also if I want to move the log in from the top of the page to one of the sideboxes do I install this mod login_box_1.6.

Thanks!

PS have zen cart 1.3.9h and have template override system in place.

19 Sep 2011, 12:05 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Breadcrumb Nav 100%

You can get CSS to adjust the breadcrumbs. It's an "untidy" way of doing it, but it gets the result you want and is easier than code edits to PHP files.

Put this at the BOTTOM of your stylesheet.css

/* - - - BREADCRUMB POSITION OVERRIDE - - -*/
#navBreadCrumb {margin-left: -150px; margin-right: 5px;}

(or: #navBreadCrumb {margin: 0px 5px 0px -150px;}


Your column pics ARE centered, but as they are quite WIDE, and the column width is 150px, they are nudging up to the RIGHT HAND SIDE of the column. There are also padding and margin settings for the sideboxes in the CSS. These also need to be taken into account.

You need to make size adjustments to your column and your images. These are done in the configuration menu, under LAYOUT SETTINGS and IMAGES.

Play around until you get the size you want.


If you see an ELEMENT ID (such as a css class or id) appearing in the HTML, it means that the software is applying the ID (or CLASS) to an element.

In a lot of cases, elements are not styled individually, because they can just "inherit" a parent style, or a collective" style. So you won't see any declaration for them in the stylesheet.

But you can add these in as and when you need to. Just follow CSS rules and protocols and it will be OK.

19 Sep 2011, 2:54 PM
#3
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: Breadcrumb Nav 100%

Thanks so much. You guys moderating this forum are AWSOME!:clap:

I did have one part of this post that was not answered and that was the bit about moving the log in at the top of the page to one of the sideboxes.

Also is it possible to add products without an image .. so that the no picture available is not there either. I know you are thinking why would you want to but I have client who wants exactly that.

Thanks again

19 Sep 2011, 3:20 PM
#4
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: Breadcrumb Nav 100%

Sorry your css breadcrumb worked for it to go left but I still cant get it to go right across the page. Thx

20 Sep 2011, 2:37 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Breadcrumb Nav 100%

wotnow:

Sorry your css breadcrumb worked for it to go left but I still cant get it to go right across the page. Thx

Apply the same principles as you have done for the LEFT side, to the RIGHT side.

Nudge the right column down (like yiu did with the left), then give the breadcrumb element an absolute width in the css declaration, where that width stretches it across the content area.

20 Sep 2011, 10:17 PM
#6
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: Breadcrumb Nav 100%

Hi Thanks for your response. I already tried that. If you apply the same css to the right as to the left .. the right content box gets shifted out to the right. I tried adding a right margin to the right content. I can find no float properties for this sidebox.

7 Oct 2011, 1:11 AM
#7
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: Breadcrumb Nav 100%

Hi I am still waiting to find out how to make the breadcrumb fit 100% across the page.

All my attempts have pushed the whole right side bar across. Any suggestions would be much appreciated. Thanks.

7 Oct 2011, 1:42 AM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Breadcrumb Nav 100%

There are a couple of factors you need to account for. Change your stylesheet rules like this:```
/* - - - BREADCRUMB POSITION OVERRIDE - - -*/
#navBreadCrumb {
margin: 0px -180px 0px -180px;
background-color:#9a8e7e;}

/* top padding on side boxes */

#navColumnTwo.columnRight {
padding: 3.8em 0 0 0;
margin: 0;
background: none;}



By the way, you have a whole bunch of rules setting the same properties for #navBreadCrumb, which could cause confusion. Best to consolidate all of them into one rule.
7 Oct 2011, 2:02 AM
#9
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: Breadcrumb Nav 100%

Wow thank you so much that has been bugging me for ages. Would you mind explaining to me how I can get my images to display centre.

I have used the find and replace in dreamweaver and from what I can see all img tags are set align-text:center

and I tried

#productMainImage.centredContentback a img {
margin:0auto;
text-align:center;
padding: 1em 0 0 0;}

I cant seem to get the h1 tag and the image centred. Thanks

7 Oct 2011, 2:27 AM
#10
gjh42 avatar

gjh42

Black Belt

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

Re: Breadcrumb Nav 100%

I can only see the down for maintenance page, so can't diagnose the image styling now.

7 Oct 2011, 2:32 AM
#11
gjh42 avatar

gjh42

Black Belt

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

Re: Breadcrumb Nav 100%

#productMainImage.centredContentback a img {
margin:0auto;
text-align:center;
padding: 1em 0 0 0;}

If this an exact copy of what you have, there are a couple of errors in it.

#productMainImage.centeredContent**.**back a img { <--you need the exact spelling, and another dot for the .back class.
(Actually, those classes are basically irrelevant to the rule - the id is generally sufficient.)
margin:0 auto;
text-align:center;
padding: 1em 0 0 0;}

7 Oct 2011, 7:15 AM
#12
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: Breadcrumb Nav 100%

Ok sorry have removed down for maintenance. Thanks

7 Oct 2011, 2:24 PM
#13
gjh42 avatar

gjh42

Black Belt

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

Re: Breadcrumb Nav 100%

The .back class applied to the main image makes it float left. To counter this, change your rule#productMainImage.centredContentback a img { margin:0auto; text-align:center; padding: 1em 0 0 0;}to```
#productMainImage {
float: none;
margin:0 auto;
text-align:center;
padding: 1em 0 0 0;}

7 Oct 2011, 2:41 PM
#14
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: Breadcrumb Nav 100%

wotnow:

Also is it possible to add products without an image .. so that the no picture available is not there either. I know you are thinking why would you want to but I have client who wants exactly that.

Thanks again

Easy -

In your product description add this at the end..

<style type="text/css"> #productMainImage {display: none} </style>

Now this will remove the pic for any individual product page you like. If you want to simply remove all product images, just put the above in your stylesheet.

Obviously with adding these things to your product description you can can turn off anything you like for individual products - such as price - or add to cart button, anything. You can turn a product into an information page within a category.

7 Oct 2011, 2:53 PM
#15
gjh42 avatar

gjh42

Black Belt

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

Re: Breadcrumb Nav 100%

You might also try setting Configuration > Images > Image Required to false. This will let absent images silently be ignored.
Set Product Image - No Image Status to 0.