Disable ‘All’ filter

New home Forums Pro Add-on Disable ‘All’ filter

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  Nick Duncan 4 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14997

    Hi there,

    Is it possible to disable the ‘All’ filter in the category tabs? By default, the map loads ‘All’ and the user has a choice to select ‘All’ at any point. If this could be disabled it would help me a lot.

    Thanks,

    Jack

    #15042

    Nick Duncan
    Keymaster

    Hi Jack.

    Unfortunately the ‘All’ option can only be removed by making changes in the code.

    Would you be comfortable with this?

    #15056

    Hi there,

    I will happily do this. Could you let me know where abouts I have to edit the code?

    Thanks,

    Jack

    #15111

    Nick Duncan
    Keymaster

    Hi Jack.

    Please go to ‘wp-google-maps-pro’ -> ‘wp-google-maps-pro_categories.php’ on line 402

    Replace the following:

    $ret_msg .= "<input type='checkbox' class='wpgmza_checkbox' id='wpgmza_cat_checkbox_0' name='wpgmza_cat_checkbox$array_suffix' mid=\"".$map_id."\" value=\"0\" />".__("All","wp-google-maps");

    with:

    $ret_msg .= "";

    Does this help?

    • This reply was modified 4 years, 4 months ago by  Nick Duncan.
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Disable ‘All’ filter’ is closed to new replies.