Viewing 2 replies - 1 through 2 (of 2 total)
  • You can find the code for the search form in the file /templates/job-filters.php If you only want to show the categories you need to overwrite the template (see docs on how to do this) and replace the content of job-filters.php with the following

    <?php wp_enqueue_script( 'wp-job-manager-ajax-filters' ); ?>
    <form class="job_filters">
    	<?php do_action( 'job_manager_job_filters_start', $atts ); ?>
    
    	<div class="search_jobs">
    		<?php do_action( 'job_manager_job_filters_search_jobs_start', $atts ); ?>
    
    		<?php if ( $categories ) : ?>
    			<?php foreach ( $categories as $category ) : ?>
    				<input type="hidden" name="search_categories[]" value="<?php echo sanitize_title( $category ); ?>" />
    			<?php endforeach; ?>
    		<?php elseif ( $show_categories && ! is_tax( 'job_listing_category' ) && get_terms( 'job_listing_category' ) ) : ?>
    			<div class="search_categories">
    				<label for="search_categories"><?php _e( 'Category', 'wp-job-manager' ); ?></label>
    				<?php wp_dropdown_categories( array( 'taxonomy' => 'job_listing_category', 'hierarchical' => 1, 'show_option_all' => __( 'All Job Categories', 'wp-job-manager' ), 'name' => 'search_categories', 'orderby' => 'name', 'selected' => $selected_category ) ); ?>
    			</div>
    		<?php endif; ?>
    
    		<?php do_action( 'job_manager_job_filters_search_jobs_end', $atts ); ?>
    	</div>
    
    	<?php do_action( 'job_manager_job_filters_end', $atts ); ?>
    </form>
    Thread Starter blackdogllc

    (@blackdogllc)

    YOU SIR ARE THE BOMB!

    I was trying to take the search bar out with the assets/css/fronend.css
    I would not have thought to search in the job templates!

    Thanks so much!!!!!
    -Lyssa

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

The topic ‘Removing Search Bars’ is closed to new replies.