Please or Register to create posts and topics.

Tweaking appearance of Forum Search

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!

 

Hello @sara

If you want to change specific strings generated by plugins or WordPress itself, I can suggest you the following WordPress-extension:

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.

Sara has reacted to this post.
Sara
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!