Remove "All" Category

New home Forums Gold Add-on Troubleshooting Remove "All" Category

This topic contains 2 replies, has 1 voice, and was last updated by  jp_tribu 2 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29302

    jp_tribu
    Member

    Here is the site I am trying to edit: https://devilsriverwhiskey.com/find-devils-river/ . I am trying to get rid of the “All” category and center the remaining categories with checkboxes after that. Is there a way to do this?

    #29303

    jp_tribu
    Member

    Nevermind, I tried what you guys suggested here: https://www.wpgmaps.com/forums/topic/disable-all-filter/ and it worked. Thanks! (it would still be nice to know if there is a change that doesn’t require me to alter the php files)

    #29304

    SupportTeam
    Moderator

    Hi there

    Thank you for getting in touch with us.

    Unfortunately the ‘All’ checkbox can only be disabled/removed in the plugin’s code at this point in time.

    This can be done by going to wp-google-maps-pro/wp-google-maps-pro_categories.php and locating a line of code on line 393 that looks like this:

    if ($show_all) { $ret_msg .= “”.__(“All”,”wp-google-maps”).””; }

    Please add the following above this line. This will remove that ‘All’ checkbox and ensure that the remaining categories are centered:

    $show_all = false;

    I hope this helps?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.