Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End searchform.php styling

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26923
    [email protected]
    Participant

    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 css-trick.com.

    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.

    #67386
    cybershot
    Participant
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.