Is there a way to remove the search icons below search bar?
aprilcodes
Registered Users Posts: 5 Beginner grinner
Hello,
I'm working on a site that uses the Smugmug search bar (added via Discovery > Search to a page). When added this way, the initial search box is plain, with no icons below it. This is what we want.
But once the search results page appears, the search box then has four icons:
PHOTOS GALLERIES VIDEOS PHOTOS+VIDEOS
We do not want some/all of these to show, as this website offers no videos. Additionally the search results are sorted with large headers that say things like the numbers of "photos and videos" found. We don't want to confuse the user into thinking this company offers videography.
Is there any way to manipulate these? I tried adding CSS to display: none, but on search results pages, because they are dynamic, I don't see a way to do this. In fact Smugmug doesn't like it... it freezes up if I try to add CSS to a search results page.
Hoping someone has a way!
I'm working on a site that uses the Smugmug search bar (added via Discovery > Search to a page). When added this way, the initial search box is plain, with no icons below it. This is what we want.
But once the search results page appears, the search box then has four icons:
PHOTOS GALLERIES VIDEOS PHOTOS+VIDEOS
We do not want some/all of these to show, as this website offers no videos. Additionally the search results are sorted with large headers that say things like the numbers of "photos and videos" found. We don't want to confuse the user into thinking this company offers videography.
Is there any way to manipulate these? I tried adding CSS to display: none, but on search results pages, because they are dynamic, I don't see a way to do this. In fact Smugmug doesn't like it... it freezes up if I try to add CSS to a search results page.
Hoping someone has a way!
0
Comments
You can hide the icons using the following code (I hid the last 2 in this example):
You can't really change the text of the results (like "14 Photos and Videos") because CSS only lets you show or hide an entire block. You could hide the entire thing but you can't take out the words "and videos". What you could do, is just change it so it doesn't display the # of results and just say "Photos", for example:
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
http://www.joinrats.com/search
Thanks
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
And how might I squash down the blue box so that it's the same height as the search field? I see lots of sites with perfect alignment of the two, but no matter what kind of height code I add, nothing changes it, and I've found no code in all the threads on the topic of customizing fields in search.
Thanks!
You can also increase the search text box:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Super valuable code, Mike, thanks! I could not find that anywhere.
How about, I changed the search icon (magnifying glass). I can't remember where I got the code but I was delighted it worked as well as it did. Except, I was caught off guard because when I hover the mouse over it, the colors revert to the default SM blue and white.
Did I choose wrong code, or, is there additional code I can add to control for hover color?
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
1. Is it possible to also control the background color of the "sort by" dropdown options that result?
2. Also remove one of them, "photo rank" (leaving only newest and oldest)?
3. Change the font size of:
a. The row of Photos Videos Galleries Folders that is under the text entry field
b. The Sort By and its associated dropdown list?