Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #905187

    Support team,
    After adding the search icon to my menu bar, I’ve successfully added text with a link (to a Google Custom Search Page) for two sites in the code of searchform.php (Child Theme) under the search form box. Site A displays it without padding (see private URL) and Site B adds a bunch of padding using the same code. I’m stumped because none of the CSS I’ve tried for avia-search-tooltip avia-tt has helped to remove the extra padding around the the text. You can see the difference quickly clicking on my links in the Private Content below and clicking on the search icon on the main menu for each site.

    What is causing the padding difference above and below my text “Try our Advanced Search instead.” on Site B?
    Thank you for your continued support.

    View Searchform.php code (at end)

    <?php 
    
    global $avia_config; 
    
    //allows you to modify the search parameters. for example bbpress search_id needs to be 'bbp_search' instead of 's'. you can also deactivate ajax search by setting ajax_disable to true
    $search_params = apply_filters('avf_frontend_search_form_param', array(
    	
    	'placeholder'  	=> __('Search','avia_framework'),
    	'search_id'	   	=> 's',
    	'form_action'	=> home_url( '/' ),
    	'ajax_disable'	=> false
    ));
    
    $disable_ajax = $search_params['ajax_disable'] == false ? "" : "av_disable_ajax_search";
    
    $icon  = av_icon_char('search');
    $class = av_icon_class('search');
    ?>
    
    <form action="<?php echo $search_params['form_action']; ?>" id="searchform" method="get" class="<?php echo $disable_ajax; ?>">
    	<div>
    		<input type="submit" value="<?php echo $icon; ?>" id="searchsubmit" class="button <?php echo $class; ?>" />
    		<input type="text" id="s" name="<?php echo $search_params['search_id']; ?>" value="<?php if(!empty($_GET['s'])) echo get_search_query(); ?>" placeholder='<?php echo $search_params['placeholder']; 
              ?>' />
    		<?php 
    		
    		// allows to add aditional form fields to modify the query (eg add an input with name "post_type" and value "page" to search for pages only)
    		do_action('ava_frontend_search_form'); 
    		?>
    	</div>
    </form>
    <?php 
    		
    		// allows to add aditional form fields to modify the query (eg add an input with name "post_type" and value "page" to search for pages only)
    		do_action(''); 
    		echo "<p align='left'> ".__('&nbsp;&nbsp;Try our <a href=/search_gcse>Advanced Search</a> instead.','avia_framework')."</p>";
    		?>
    #906020

    Hey Julie,

    Thank you for using Enfold.

    Do you want to decrease the space around the search text? Please use the following css code.

    .av_minimal_header .main_menu ul:first-child > #menu-item-search .avia-search-tooltip a {
        height: 20px;
        line-height: 20px;
    }

    Best regards,
    Ismael

    #906312

    Hi Ismael,
    Unfortunately, no change. I even added !important for each. Site creds included in private.

    • This reply was modified 6 years, 1 month ago by welswebmaster. Reason: added sftp
    #906650

    Hi,

    Thank you for the info. The same css code worked. Please look at the screenshot.

    // https://imgur.com/a/ilplv

    Best regards,
    Ismael

    #907003

    THanks so much! Please close ticket.

    #907324

    Hi,

    Glad we could help!
    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Basilis

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Menu Search – searchform added with added text’ is closed to new replies.