Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Currencies Box title wrapped in label tag

Currencies Box title wrapped in label tag

Locked

Views: 2,353

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
9 Aug 2006, 1:02 AM
#1
nicko2 avatar

nicko2

New Zenner

Join Date:
Aug 2006
Posts:
25
Plugin Contributions:
0

Currencies Box title wrapped in label tag

Problem with the title being wrapped in <label> tags.

The title is getting wrapped in <label> tags where as the other boxe titles do not, this is effecting the display.

Where could I find the file that produces the below code so I can remove those label tags, I cannot find it??

<h3 class="rightBoxHeading" id="currenciesHeading"><label>Currencies</label></h3>

Note: all other headings in the left/right boxes seem fine!!

<h3 class="rightBoxHeading" id="languagesHeading">Languages</h3>
9 Aug 2006, 1:38 AM
#2
nicko2 avatar

nicko2

New Zenner

Join Date:
Aug 2006
Posts:
25
Plugin Contributions:
0

Re: Currencies Box title wrapped in label tag

sorry guys, label tag not the problem.
I thought it was effecting the width of the title box but it was the actual drop down menu.

I have since added a new CSS style to make it fit in my design.

#currenciesContent select { width:140px;}

9 Aug 2006, 1:49 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Currencies Box title wrapped in label tag

This starts in /includes/modules/sideboxes/currencies.php but this should not cause problems as this heading is defined as a 'label'...

What problem are you seeing?? How is this affecting the display?

9 Aug 2006, 1:54 AM
#4
nicko2 avatar

nicko2

New Zenner

Join Date:
Aug 2006
Posts:
25
Plugin Contributions:
0

Re: Currencies Box title wrapped in label tag

Hi,
thanks for the path to the file.
See my post above yours, all good now!
It was the dropdown currency menu width that was effecting the header display- nothing to do with the label tag :0

12 Aug 2006, 10:53 AM
#5
stjude avatar

stjude

New Zenner

Join Date:
Jun 2006
Posts:
37
Plugin Contributions:
0

Re: Currencies Box title wrapped in label tag

I have this problem with both "Currencies" and "Search"

http://judysgems.com/ZenCart/

How can I fix it? Can't see how to do it from "/includes/modules/sideboxes/currencies.php"

Judy

12 Aug 2006, 12:01 PM
#6
nicko2 avatar

nicko2

New Zenner

Join Date:
Aug 2006
Posts:
25
Plugin Contributions:
0

Re: Currencies Box title wrapped in label tag

Hi stjude,
Your currency drop down width looks fine to me, you must of worked that out.
What I would suggest is maybe change the default text string in the search box to something a bit shorter. You can edit this via:

/includes/languages/english/header.php

define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here');

The search width is a bit of a pain to edit atm because it is set in in the actual input tag for some reason. Would be better this input tag had its own ID and the style set in the external CSS file.

Anyhow if you really wanted to edit the width of the search box, you may have to edit the /sideboxes/tpl_search.php

Just modify this bit:
style="width: ' . ($column_width-30) . 'px"') . '<br />'

12 Aug 2006, 12:09 PM
#7
stjude avatar

stjude

New Zenner

Join Date:
Jun 2006
Posts:
37
Plugin Contributions:
0

Re: Currencies Box title wrapped in label tag

Thanks but my problem is not with the width of the boxes - it's the headings that are much larger than my other box headings..................
Judy

12 Aug 2006, 12:20 PM
#8
nicko2 avatar

nicko2

New Zenner

Join Date:
Aug 2006
Posts:
25
Plugin Contributions:
0

Re: Currencies Box title wrapped in label tag

You can set all box headings to the same font-size widths by editing the below CSS classes in the stylesheet.css, if they arent there just add them and set the font size to whatever you want.

E.G.
.leftBoxHeading { font-size:20px; }
.rightBoxHeading { }

or if you wish to edit only the search and currency headings add/edit these two styles to your stylesheet.css

#searchHeading { }
#currencies { }

Each heading has its own CSS ID, just view page source to see them.

12 Aug 2006, 12:52 PM
#9
stjude avatar

stjude

New Zenner

Join Date:
Jun 2006
Posts:
37
Plugin Contributions:
0

Re: Currencies Box title wrapped in label tag

Thank you so much. Strange - I had to change them to 2 different sizes to match the rest but after playing around with it it worked.

But................ when I did this the dropdown for currencies shrank to almost unreadable. I tried adding

#currencies {
font-size: 1em;
}

underneath .sideBoxContent which worked for the dropdown but the heading for currencies got really large again.

Any ideas??????????

Judy

12 Aug 2006, 12:57 PM
#10
nicko2 avatar

nicko2

New Zenner

Join Date:
Aug 2006
Posts:
25
Plugin Contributions:
0

Re: Currencies Box title wrapped in label tag

Oops sorry, I posted the incorrect css tag for the currency heading!
Try this one:
#currenciesHeading { }

12 Aug 2006, 1:14 PM
#11
stjude avatar

stjude

New Zenner

Join Date:
Jun 2006
Posts:
37
Plugin Contributions:
0

Re: Currencies Box title wrapped in label tag

Thanks a million - finally got that problem solved.

on to the next....

Judy