Your address will show here +12 34 56 78

Home Forums WP RESIDENCE – Real Estate WordPress Theme FORUM Remove advanced search from Google Maps header only with code

This topic contains 2 replies, has 2 voices, and was last updated by  Anna 2 years, 2 months ago.

  • Author
    Posts
  • #109353

    Anna
    Keymaster

    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:

    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');
    }
    }
    }

  • #113482

    tpsaras
    Participant

    Would be great if this is an option for these fields to be mandatory in theme options!

    Maybe an idea for next update?

    Thanks!

  • #117682

    Anna
    Keymaster

    Hi tpsaras

    Such controls yes/no for every page would create a page loading delay which we work very hard to avoid and keep this to minimum.

    But thank you for the suggestion. We will think about it.

    Anna

You must be logged in to reply to this topic.