• Resolved kazclaw74

    (@kazclaw74)


    I will be selling only digital content.
    I have no need for locations.
    Can someone explain how to tweak the code to remove Location from the search, or completely from the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter kazclaw74

    (@kazclaw74)

    I deleted this from Public> partials>Search> acadp-search-inline-display.php
    and it worked.

    <?php if( $can_search_by_category ) : ?>
            		<!-- Category field -->
    				<div class="form-group col-md-<?php echo $span_top; ?>">
    					<?php
            				wp_dropdown_categories( array(
                				'show_option_none' => '-- '.__( 'Select a category', 'advanced-classifieds-and-directory-pro' ).' --',
                				'taxonomy'         => 'acadp_categories',
                				'name' 			   => 'category',
    							'id'               => 'acadp-category-search-'.$id,
    							'class'            => 'form-control acadp-category-search',
                				'orderby'          => 'name',
    							'selected'         => isset( $_GET['category'] ) ? (int) $_GET['category'] : -1,
                				'hierarchical'     => true,
                				'depth'            => 10,
                				'show_count'       => false,
                				'hide_empty'       => false,
            				) );
    					?>
    				</div>
            	<?php endif; ?>   
    • This reply was modified 8 years, 10 months ago by kazclaw74.

    Hello

    I know the issue is Resolved, but for future reference …

    On the Search widget uncheck the : Search by Location.

    Hope it helps

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘remove location from search list’ is closed to new replies.