Search box customization
corinos
Registered Users Posts: 41 Big grins
Does anybody know how to customize the search box and button? I managed to change the change box width but I would also like to change the box text ("search for photos...") so that it fits inside the box (have a look at the left menu bar: www.orinosphotography.com). Additionally, I would like to remove the left margin of the search box so that it left-aligns with the search box.
Thanks in advance,
Chris
Thanks in advance,
Chris
0
Comments
Mel Jones Photography Ltd.
School and Nursery Photographer working in Blackpool and Lancashire, UK.
Google+ Page / Local | Facebook Page
For your site, this code should work: https://gist.github.com/DanCarl97/9031841
I removed the icon to make the the search button less cluttered seen as it's for a small area and made the button stretch full width so that it'll fill the sidebar. (I personally think it would look better that way.)
You can easily change the placeholder (the greyed out text inside the input box) and the search button text. (Just look for it in the code, shouldn't be hard to find.)
If anyone else wants to use that code, all you need to do is change the <input> tag with the value corinos. Simply swap corinos for your SmugMug site's nickname.
Mel Jones Photography Ltd.
School and Nursery Photographer working in Blackpool and Lancashire, UK.
Google+ Page / Local | Facebook Page
Add this to the CSS tab of the HTML content block to align the search button properly on the left edge:
EDIT: Whoops, you bet me to it, Dan!
Please check out my gallery of customisations for the New SmugMug, more to come!
Cheers,
Chris