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 » Plugins & Atahualpa »

Problem to show a category in the Search Box of the header


 
Prev Previous Post   Next Post Next
  #1  
Old Oct 21, 2009, 04:58 AM
iosphiel
 
4 posts · Oct 2009
Problem to show a category in the Search Box of the header

Hi, i have a problem to show the category in the category page in the header. I need "Buscar + category" but the category appears out of the search box.

How can i fix it?

Thanks.


Code:
		// Search box
		if ( $bfa_ata['show_search_box'] == "Yes" ) { 
				
		if ( is_category() ){
		
			$logo_area .= '<td valign="bottom" class="search-box" align="right">';
			$logo_area .= '<div style="width:150px;margin: 0 140px 0 0;"><span style="color:#006699;font-weight: bold;">Buscar '; 		
			$logo_area .= single_cat_title('');
			$logo_area .= ' </span></div><div class="searchbox">	
			

			   <form method="get" class="searchform" action="' . get_bloginfo( 'url' ) . '/">
				<div class="searchbox-form">' .
					// Check for WP 2.2 which doesn't know get_search_query
					(function_exists('get_search_query') ? '
					<input type="text" class="text inputblur" onfocus="this.value=\''.
					(get_search_query() ? get_search_query() : '' ).'\'" 
					value="' . (get_search_query() ? get_search_query() : $bfa_ata['searchbox_text'] ) . 
					'" onblur="this.value=\''.(get_search_query() ? get_search_query() : $bfa_ata['searchbox_text'] ).
					'\'" name="s" />' :
					'<input type="text" class="text inputblur" name="s" />') .
				'</div>
				</form>
			</div>
			</td>';
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a submit button to the header search box eyelight Header configuration & styling 2 Aug 2, 2010 06:16 AM
Spacing in the header - Search box is too far to the right austin2k Header configuration & styling 1 Aug 31, 2009 03:23 PM
Google Adsense Search Box in Header jendico Header configuration & styling 2 Jul 21, 2009 11:11 AM
removing tagline from 'search box' area of header kiddio Header configuration & styling 1 May 28, 2009 05:02 PM
search box and archive search box zizi Page & Category Menu Bars 2 Mar 28, 2009 11:31 AM


All times are GMT -6. The time now is 10:30 AM.


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