VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: wicko on August 08, 2013, 13:58:48 PM

Title: 100% width for VM search input field
Post by: wicko on August 08, 2013, 13:58:48 PM
I would like to set the width of the Virtuemart input field to 100% leaving enough room for the button on the right. My site is responsive so hopefully making it 100% it will then reduce down to the width of the browser. At the moment when I set the size large enough for the front page on a desktop then the field runs out the edge of the display on a mobile. I have tried to add percentage to the module settings but this only relates to the width as a solid and not a percentage.
How can I change this or is there a better search option that is responsive. I don't need Cherry picker options as I have this install separately.
Title: Re: 100% width for VM search input field
Post by: Maxim Pishnyak on August 08, 2013, 23:45:24 PM
Did you try Firebug (FAQs of Template forum section)?
Title: Re: 100% width for VM search input field
Post by: wicko on August 09, 2013, 00:35:10 AM
Actually not a lot you can find with firebug. Ended up editing the module php file to add width commands in the script. Forced with to 90% and added a little padding to right for button. Was confusing as my template had 3 instances of VMware search module php with the final edit going in the template override. Just hope that when the template gets a update I can remember which file to update again..
Title: Re: 100% width for VM search input field
Post by: Maxim Pishnyak on August 09, 2013, 22:07:22 PM
Kdiff program could easily show you difference between your version and original version of template.