• Anna
    May 28, 2015 at 8:08 am #109354

    header_media.php – code starts at line 72

    We use numbers in code to represent header types:

    Google Maps header is represented by these numbers:

    global_header – 4 (this stands for global header options from theme options – appearance)
    header_type – 5 (this stands for custom header options from edit page/post – header options)

    In this file – header_media.php – lines 78 & 90 must be commented for the header google maps to NOT show Advanced Search on top of it.

    Original code

    if($show_adv_search_general ==  'yes' && !is_404() && !is_page_template('property_list_half.php')){
        if($header_type == 1){
          //nothing  
        }else if($header_type == 0){ 
            if($global_header_type==4){
                $show_mobile=1;
                get_template_part('templates/advanced_search');  
            }else if( $global_header_type==0){
               //nonthing 
            }else{
                if($show_adv_search_slider=='yes'){
                    $show_mobile=1;
                    get_template_part('templates/advanced_search');  
                }
            }
    
        }else if($header_type == 5){
                $show_mobile=1;
                get_template_part('templates/advanced_search');  
        }else{
             if($show_adv_search_slider=='yes'){
                $show_mobile=1;
                get_template_part('templates/advanced_search');  
            }
        }       
    }

    EDITED CODE

    if($show_adv_search_general ==  'yes' && !is_404() && !is_page_template('property_list_half.php')){
        if($header_type == 1){
          //nothing  
        }else if($header_type == 0){ 
            if($global_header_type==4){
                $show_mobile=1;
                //get_template_part('templates/advanced_search');  
            }else if( $global_header_type==0){
               //nonthing 
            }else{
                if($show_adv_search_slider=='yes'){
                    $show_mobile=1;
                    get_template_part('templates/advanced_search');  
                }
            }
    
        }else if($header_type == 5){
                $show_mobile=1;
                //get_template_part('templates/advanced_search');  
        }else{
             if($show_adv_search_slider=='yes'){
                $show_mobile=1;
                get_template_part('templates/advanced_search');  
            }
        }       
    }

    remove advanced search from google maps

    • This topic was modified 1 year, 10 months ago by  Anna.
    • This topic was modified 1 year, 10 months ago by  Anna.
    • This topic was modified 1 year, 10 months ago by  Anna.
    • This topic was modified 1 year, 10 months ago by  Anna.

You must be logged in to reply to this topic.

'
Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.