Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Manafucturers Sidebox dropdown colours

Manafucturers Sidebox dropdown colours

Views: 1,092

Results 1 to 17 of 17
5 Mar 2011, 12:00 PM
#1
casper_fly avatar

casper_fly

New Zenner

Join Date:
Mar 2011
Posts:
9
Plugin Contributions:
0

Manafucturers Sidebox dropdown colours

I currently building a site, and while these forums have been great at helping with many other problems, I can't find a solution to this seemingly very simple one.

I can't seem to find out how change either the text colour or background colour in the manafucturers sidebox dropdown menu. I searched for a long while to find a solution with no success, so any help would be appreciated.

The site I am building is at http://www.woolbasket.co.uk/zen-cart/

5 Mar 2011, 2:20 PM
#3
casper_fly avatar

casper_fly

New Zenner

Join Date:
Mar 2011
Posts:
9
Plugin Contributions:
0

Re: Manafucturers Sidebox dropdown colours

The only tpl_manufacturers_select.php I have is situated at

/public_html/zen-cart/includes/templates/template_default/sideboxes

I've played around with it but I don't know where or what code to change the background/ text colour.

This is the contents of the file:

<?php /** * Side Box Template * * @package templateSystem * @copyright Copyright 2003-2010 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_manufacturers_select.php 15882 2010-04-11 16:37:54Z wilt $ */ $content = ""; $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">'; $content.= zen_draw_form('manufacturers_form', zen_href_link(FILENAME_DEFAULT, '', $request_type, false), 'get'); $content .= zen_draw_hidden_field('main_page', FILENAME_DEFAULT); $content .= zen_draw_pull_down_menu('manufacturers_id', $manufacturer_sidebox_array, (isset($_GET['manufacturers_id']) ? $_GET['manufacturers_id'] : ''), 'onchange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 90%; margin: auto;background: #6b8627;"') . zen_hide_session_id(); $content .= '</form>'; $content .= '</div>'; ?>
5 Mar 2011, 2:28 PM
#4
keneso avatar

keneso

Totally Zenned

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

Re: Manafucturers Sidebox dropdown colours

You are using estorenow template, check in the folder sideboxes of that template.

If you want to change it with the default one, copy tpl_manufacturers_select.php and put it in the sideboxes folder of the estorenow template, and edit the red part of the code for your color

$content .= zen_draw_pull_down_menu('manufacturers_id', $manufacturer_sidebox_array, (isset($_GET['manufacturers_id']) ? $_GET['manufacturers_id'] : ''), 'onchange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 90%; margin: auto;background: #6b8627;"') . zen_hide_session_id();

5 Mar 2011, 2:32 PM
#5
casper_fly avatar

casper_fly

New Zenner

Join Date:
Mar 2011
Posts:
9
Plugin Contributions:
0

Re: Manafucturers Sidebox dropdown colours

I don't have a tpl_manufacturers_select.php in estorenow sidebox folder (even did a search using the developers toolkit to be sure). Would it be fine to just copy the default one in?

5 Mar 2011, 2:41 PM
#6
casper_fly avatar

casper_fly

New Zenner

Join Date:
Mar 2011
Posts:
9
Plugin Contributions:
0

Re: Manafucturers Sidebox dropdown colours

Update: I tried that and still no luck.

also I have noticed that I was the one to place "background: #6b8627;" there, in the hope that it would work. Unfortunatly it didn't.

5 Mar 2011, 3:11 PM
#7
keneso avatar

keneso

Totally Zenned

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

Re: Manafucturers Sidebox dropdown colours

also I have noticed that I was the one to place "background: #6b8627;" there, in the hope that it would work. Unfortunatly it didn't.

Exactly where did you put that?

Anyhow, it should be ok, if you don't have a sideboxes folder in the estorenow template folder, create one, and put the copy of the manufacturers_select.php in there.

What did you search for with the developer toolkit?
Could you try searching for
rgb(107, 134, 39)

If you want to change only the color of the text put this in your stylesheet.css

#manufacturersContent select {color: #000000;}

5 Mar 2011, 3:18 PM
#8
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: Manafucturers Sidebox dropdown colours

Ca,
Locate this:

zen-cart/includes/templates/estorenow/css/stylesheet.cssFind this:
option {
background:none repeat scroll 0 0 #FFFFFF;
}

Change to this:

option {
background:none repeat scroll 0 0 #6B8627;
{

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

5 Mar 2011, 3:18 PM
#9
casper_fly avatar

casper_fly

New Zenner

Join Date:
Mar 2011
Posts:
9
Plugin Contributions:
0

Re: Manafucturers Sidebox dropdown colours

When I posted the code from the pl_manufacturers_select.php found in template_default, I neglected to mention that I had added 'background: #6b8627;', in the hopes of solving the problem. There was no mention of background when I opened it up fresh. I've copied that file into estorenow/sideboxes folder when no change.

5 Mar 2011, 3:28 PM
#10
casper_fly avatar

casper_fly

New Zenner

Join Date:
Mar 2011
Posts:
9
Plugin Contributions:
0

Re: Manafucturers Sidebox dropdown colours

Tried that haredo and it changes to colour of my whole background so that I can't see the background image. This happens with all my pulldown menus (such as product filter) is there a way of changing something to do with that?

5 Mar 2011, 3:32 PM
#11
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: Manafucturers Sidebox dropdown colours

Ca,
You changed the option on line 1468 in the stylesheet.css
Please change it again and leave it so I can view in Firefox with addd on called Firebug...

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

5 Mar 2011, 3:41 PM
#12
casper_fly avatar

casper_fly

New Zenner

Join Date:
Mar 2011
Posts:
9
Plugin Contributions:
0

Re: Manafucturers Sidebox dropdown colours

Ok, no problem.

5 Mar 2011, 4:47 PM
#13
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: Manafucturers Sidebox dropdown colours

Casper,
That should of fixed your problem... :smile:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

5 Mar 2011, 4:51 PM
#14
casper_fly avatar

casper_fly

New Zenner

Join Date:
Mar 2011
Posts:
9
Plugin Contributions:
0

Re: Manafucturers Sidebox dropdown colours

Many thanks to haredo for working through this problem through PMs. This was the solution:

open your stylesheet.css at

zen-cart/includes/templates/Your_Template/css/stylesheet.css

Change this:

option{
background:#FFF;

}
select{
background:#21303C;
color:#FFF;

}

to this:

option{
background-color:#6b8627;

}
select{
background:#21303C;
color:#FFF;

where "background-color:#6b8627" is for the colour you want in the dropdown boxes.

Thanks again!

5 Mar 2011, 4:55 PM
#15
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: Manafucturers Sidebox dropdown colours

Casper,
You are most welcome.. Glad your fixed...

Check this page out and notice the Page 2, etc..

http://www.woolbasket.co.uk/zen-cart/index.php?main_page=site_map

admin panel/ configuration/ Define Page Statue

  1. Set them to 3

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

5 Mar 2011, 5:56 PM
#16
casper_fly avatar

casper_fly

New Zenner

Join Date:
Mar 2011
Posts:
9
Plugin Contributions:
0

Re: Manafucturers Sidebox dropdown colours

Thank my friend, if only I could afford to employ someone like you to fix all my problems!

5 Mar 2011, 5:59 PM
#17
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: Manafucturers Sidebox dropdown colours

Casper,
Awe ... Thanks

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.