Results 1 to 5 of 5
Like Tree2Likes
  • 1 Post By kcjt2009
  • 1 Post By simedia

Thread: Proper Way to Change "Search for" and "Near" in child theme

  1. #1
    Thread Starter
    Expired Customer kcjt2009's Avatar
    Join Date
    Dec 2013
    Location
    United States
    Posts
    276
    Thanks
    32
    Thanked 24 Times in 20 Posts

    Proper Way to Change "Search for" and "Near" in child theme

    Hey Guys


    I am looking to change the text in the header area. I found the solution here:

    http://forums.appthemes.com/report-v...ch-near-31889/

    I see where I can do it in the parent file, but want to make the change in a child theme. My parent theme looks like this:

    Code:
    <div id="main-navigation" class="container">
    	<div class="row">
    		<div id="rounded-nav-box" class="rounded">
    			<div id="rounded-nav-box-overlay">
    				<?php va_display_navigation_menu(); ?>
    				<?php if ( false !== apply_filters('va_show_search_controls', true ) ) : ?>
    				<form method="get" action="<?php echo trailingsla****( home_url() ); ?>">
    					<div id="main-search">
    						<div class="search-for">
    							<label for="search-text">
    								<span class="search-title"><?php _e( 'Search For ', APP_TD ); ?></span>
    								<?php do_action('va_search_for_above'); ?>
    							</label>
    							<div class="input-cont h39">
    								<div class="left h39"></div>
    								<div class="mid h39">
    									<input type="text" name="ls" id="search-text" class="text" value="<?php va_show_search_query_var( 'ls' ); ?>" />
    								</div>
    								<div class="right h39"></div>
    							</div>
    						</div>
    
    						<div class="search-location">
    							<label for="search-location">
    								<span class="search-title"><?php _e( 'Near ', APP_TD ); ?></span><span class="search-help"><?php _e( '(city, country)', APP_TD ); ?></span>
    							</label>
    							<div class="input-cont h39">
    								<div class="left h39"></div>
    								<div class="mid h39">
    									<input type="text" name="location" id="search-location" class="text" value="<?php va_show_search_query_var( 'location' ); ?>" />
    								</div>
    								<div class="right h39"></div>
    							</div>
    						</div>
    
    						<div class="search-button">
    							<button type="submit" id="search-submit" class="rounded-small"><?php _e( 'Search', APP_TD ); ?></button>
    						</div>
    					</div>
    					<?php the_search_refinements(); ?>
    				</form>
    				<?php endif; ?>
    			</div>
    		</div>
    	</div>
    </div>
    Do I simply copy and paste this entire code into my header.php file in my child theme? or do I just cut out a snippet pertaining to the actual lines I want to change. Can someone articulate the proper way to do this, thanks?

    by the way, I also would like to drop the text down into the actual search box area and have it automatically disappear once you start typing and to also put the "add a business" button in the header, too - does that change the answer?
    shuey likes this.

  2. #2
    simedia's Avatar
    Join Date
    Jan 2013
    Location
    United States
    Posts
    71
    Thanks
    33
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    shuey likes this.

  3. #3
    Expired Customer gonesmith's Avatar
    Join Date
    Jun 2012
    Posts
    764
    Thanks
    50
    Thanked 202 Times in 137 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Rookie shuey's Avatar
    Join Date
    Apr 2011
    Location
    United States
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Edit search box text

    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Rookie shuey's Avatar
    Join Date
    Apr 2011
    Location
    United States
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dimitris "search" & tags don't work on child theme
    By poemaderoca in forum Help Using Vantage (Legacy)
    Replies: 5
    Last Post: August 25th, 2013, 01:37 PM
  2. Replies: 9
    Last Post: February 25th, 2013, 09:29 AM
  3. Replies: 1
    Last Post: June 22nd, 2012, 10:57 AM
  4. Replies: 1
    Last Post: June 22nd, 2012, 10:57 AM
  5. Replies: 3
    Last Post: January 4th, 2012, 06:32 AM