Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2006
    Posts
    41
    Plugin Contributions
    0

    Default My seach module breaks the layout

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

    http://koshernutsandcandy.com

  2. #2
    Join Date
    Aug 2006
    Location
    Canada
    Posts
    1,029
    Plugin Contributions
    5

    Default 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:
    Code:
    ($column_width-30)
    I forget what your custom padding was, but try to degrade the value in increments of 5 or perhaps less.
    Code:
    ($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.

  3. #3
    Join Date
    Aug 2006
    Location
    Canada
    Posts
    1,029
    Plugin Contributions
    5

    Default 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.

    Try ($column_width-50) for starters.

  4. #4
    Join Date
    Jun 2006
    Posts
    41
    Plugin Contributions
    0

    Default 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.

  5. #5
    Join Date
    Aug 2006
    Location
    Canada
    Posts
    1,029
    Plugin Contributions
    5

    Default Re: My seach module breaks the layout

    It does look perfect now and you're welcome.

 

 

Similar Threads

  1. Layout Breaks in Safari
    By wizer in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 26 Jun 2011, 08:30 PM
  2. Sold out item breaks my layout
    By sebastiankozub in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Mar 2010, 04:27 PM
  3. Colum layout in FireFox randomly breaks
    By TheVulcan in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 31 Aug 2008, 08:49 PM
  4. Over-riding the header seach box
    By akizzle in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Oct 2006, 01:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg