Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / My seach module breaks the layout

My seach module breaks the layout

Locked

Views: 1,035

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
19 May 2007, 12:20 PM
#1
pkonstan avatar

pkonstan

New Zenner

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

My seach module breaks the layout

My seach module breaks the layout. How do I fix this?

http://koshernutsandcandy.com

19 May 2007, 12:48 PM
#2
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Re: My seach module breaks the layout

It appears to be due from the custom padding. There's two ways to go about this, lose the padding or hack a size override for that input.

The latter takes a wee bit of work, but will preserve your desired layout.. the trade-off with be minor compression of that search input field, basically shrinking it.

To pull this off, you'd probably want to conduct the process in an over-ride sort of way.

Step 1. In your current template folder(yourstore/includes/templates/yourtemplate)
Insert a new subfolder into your main template folder and name it "sideboxes".

Then, go into "template_default" template folder(yourstore/includes/templates/template_default) and open up it's subfolder called "sideboxes". Go into that said subfolder and download "tpl_search.php" to your desktop.

Go to your desktop and open that file, you will see two instances of:

($column_width-30)

I forget what your custom padding was, but try to degrade the value in increments of 5 or perhaps less.

($column_width-25)

What this will due is reduce the overall width of the search input field against the actual column width. Therefore, fitting it back in. Experiment by say.. adjusting both $column_widths to -25.

Step 2. Upload the desktop "tpl_search.php" into your current template's new "template" subfolder. Note the change on your store front and adjust the values until you have it looking snazzy as can be. :D

19 May 2007, 1:00 PM
#3
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Re: My seach module breaks the layout

Sorry, I just checked on the procedure and it's best to increase the values instead of my babble above. I wasn't thinking right, like usual. :wacko:

Try ($column_width-50) for starters.

19 May 2007, 1:26 PM
#4
pkonstan avatar

pkonstan

New Zenner

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

Re: My seach module breaks the layout

Yeah I just figured that out. You'd think decreasing the value would make it smaller but it is just the opposite. Thanks it works now.

20 May 2007, 12:59 AM
#5
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Re: My seach module breaks the layout

It does look perfect now and you're welcome. :smile: