Capstone – sMyles Plugins https://plugins.smyl.es WordPress and WHMCS Plugins Mon, 31 Mar 2025 18:52:15 +0000 en-US hourly 1 https://wordpress.org/?v=4.6.29 Capstone Theme Changes for Search and Filtering Compatibility https://plugins.smyl.es/docs-kb/capstone-theme-changes-for-search-and-filtering-compatibility/ Thu, 23 Jan 2020 17:55:18 +0000 https://plugins.smyl.es/?post_type=bwl_kb&p=178652 Unfortunately because the Capstone theme uses the standard get_template_part function for template part files — there’s no way for my plugin to override the template used, and as such, until the theme developer updates his theme to use the WP Job Manager get_job_manager_template_part function, you must manually edit the files below:

This is ONLY required if you’re using version 1.7.2 or older! Version 1.7.3+ of Capstone theme has been updated to change these already, so you don’t need to do anything if you’re using 1.7.3 or newer.

The first file you must edit is located at wp-content/themes/capstone/includes/sidebar-modules.inc.php on line #10-11 you should see this code:

<?php get_template_part( 'includes/job-search.inc' ); ?>
<?php get_template_part( 'includes/job-filters.inc' ); ?>

CHANGE the file to instead look like this:

<?php get_job_manager_template_part( 'includes/job-search.inc' ); ?>
<?php get_job_manager_template_part( 'includes/job-filters.inc' ); ?>

The second file you need to edit is located at wp-content/themes/capstone/includes/page-hero.inc.php on line #24 you should see this code:

<?php get_template_part( 'includes/'. $hero_search_module .'-search.inc' ); ?>

CHANGE the file to instead look like this:

<?php get_job_manager_template_part( 'includes/'. $hero_search_module .'-search.inc' ); ?>

That’s IT!  Hopefully the developer will update the theme to use this function instead so you don’t have to manually edit the files yourself.  Keep in mind IF YOU UPDATE THE THEME these changes WILL BE LOST and you MUST manually edit and update the files again!

]]>