The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "SVG" Oct 14 - 6:30 PM Eastern
Get a free trial // Grow your CSS skills // Land your dream job

searchform.php styling

  • # November 25, 2009 at 4:26 pm

    Hi, I’m new on this forum, I was looking for some infos about styling the search form in my WordPress theme. I successfully made my own searchform.php file template in my theme, but I would like to style it in the way is working here on

    Let’s be more specific: in my template I have <?php the_search_query(); ?> set as value for the text form. I would like to display a string (like a super-original "Search…") when there’s no search query inserted yet, and then display the actual search query when it was inserted.
    Should I have to write some other php code or there’s another way to achieve that?
    Thanks for your help.

    # December 2, 2009 at 1:05 am … tionality/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed