WordPress.org

Ready to get started?Download WordPress

Forums

How to change search button to an image? (2 posts)

  1. tbraestrup
    Member
    Posted 4 years ago #

    Hi!

    First of all I'm using the Kubricks Theme. I want to change the search button and replace it with my own image. How do I do that? I guess I have to change something in the index.php? I got this in my index.php, guess I have to add something to this:

    <li>
       <?php get_search_form(); ?>
    </li>

    Thanks for helping

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Create your own search form template file called searchform.php. The file should include only the form markup. No calls to the header, sidebar(s) or footer. Save the file in your theme folder. This file will be called automatically when you use get_search_form() - which means that you can now re-configure the search form to your heart's content.

Topic Closed

This topic has been closed to new replies.

About this Topic