Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

How to add text in Search Widget


  #1  
Old Feb 4, 2009, 12:24 PM
sagatr
 
6 posts · Jan 2009
Hi

How can you add text in search box, on the search widget, just before the magnifer.

I want to add the text "search" in the box before the magnifier.

Thanks.
  #2  
Old Feb 4, 2009, 12:53 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Change searchform.php line 5 from
PHP Code:
<input type="text" class="text inputblur" value="<?php the_search_query(); ?>" name="s" />
to
PHP Code:
<input type="text" class="text inputblur" 
onfocus="this.value='<?php echo (get_search_query() ? get_search_query() : '' ); ?>'" 
value="<?php echo (get_search_query() ? get_search_query() : 'DEFAULT SEARCH TEXT' ); ?>"  name="s" />
Replace DEFAULT SEARCH TEXT with your default search text, i.e. search

  #3  
Old Feb 8, 2009, 04:06 AM
tikdi
 
7 posts · Feb 2009
Thanks, that helped. I was looking for it too.

Bookmarks

Tags
search, text

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Search Box to Page Menu vinniev Page & Category Menu Bars 6 May 19, 2010 12:06 AM
[SOLVED] How to Add Text to ALL Posts? strangelove Atahualpa 3 Wordpress theme 4 Feb 28, 2010 12:53 PM
[SOLVED] Text Widget - how can I highlight all text (ctl-A) for a fast delete? Leoni Plugins & Atahualpa 5 Jul 14, 2009 07:38 PM
Changing a widget display from block to inline (Twitter Text Widget) Flur Sidebars & Widgets 2 May 7, 2009 11:45 AM
adding text in search widget ppat2 Sidebars & Widgets 1 Apr 28, 2009 12:09 AM


All times are GMT -6. The time now is 08:59 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.