Published on Apr 30, 2020

How to replace the Search Form’s Submit Button with a Font Awesome SVG icon in WordPress

Sridhar Katakam

This members-only tutorial provides the steps to replace the default WordPress search form's submit input element with a button element having the HTML for Font Awesome's search icon inside.

We shall also replace the default search input's placeholder text from Search ... to just Search and do a bit of styling to make it look neat.

Step 1

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: Custom Search Form

Code:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $499 one-time).

Already a member? Log in below or here.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right