Tweaking appearance of Forum Search
Quote from Sara on January 16, 2019, 3:09 amI’d like to make the placeholder text for the Forum Search box say “Search the Forum” instead of just “Search…” because I plan to have two search boxes in my site’s header. One will say “Search the Site” and the other will say “Search the Forum.”
Also, I’d like to get rid of the dashicon classes in the search box altogether. I know how to do this with CSS, but I see the bit of code that generates the search box in the plugins includes, so if I’m putting something in my functions.php file to overwrite that anyway, I’d prefer to just go ahead and take out the search box styling and change the text. (In fact, I’d prefer the search box look like the default style for my site, pretty generic.)
Can anyone advise on how to do this? Thanks in advance!
I’d like to make the placeholder text for the Forum Search box say “Search the Forum” instead of just “Search…” because I plan to have two search boxes in my site’s header. One will say “Search the Site” and the other will say “Search the Forum.”
Also, I’d like to get rid of the dashicon classes in the search box altogether. I know how to do this with CSS, but I see the bit of code that generates the search box in the plugins includes, so if I’m putting something in my functions.php file to overwrite that anyway, I’d prefer to just go ahead and take out the search box styling and change the text. (In fact, I’d prefer the search box look like the default style for my site, pretty generic.)
Can anyone advise on how to do this? Thanks in advance!
Quote from Asgaros on January 16, 2019, 7:46 pmHello @sara
If you want to change specific strings generated by plugins or WordPress itself, I can suggest you the following WordPress-extension:
https://wordpress.org/plugins/say-what/
Regarding the searchbox-styling I am not sure if I understand you correctly. You can remove the item with the following CSS:
#af-wrapper #forum-search:before { content: none !important; }Additional stylings also can adjusted using theĀ #forum-search selector.
Hello @sara
If you want to change specific strings generated by plugins or WordPress itself, I can suggest you the following WordPress-extension:
Regarding the searchbox-styling I am not sure if I understand you correctly. You can remove the item with the following CSS:
#af-wrapper #forum-search:before { content: none !important; }
Additional stylings also can adjusted using theĀ #forum-search selector.