template hierarchy for job&experts

Hi there,

I would like to know what is the template hierarchy for jobs&experts plugin so that i can customize the plugin pages from the theme directory and won't affect my customization even if plugin is updated.

for example in woocommerce we have kinda: /my-theme-dir/woocommerce/
so what would be the case for jobs&experts?

  • Luís
    • Support

    Hi mustafa ,

    Hope you're doing well today!

    I think Jobs&Experts is based on shortcodes, not in page templates. You can edit the "views" in:

    /jobs-plus/modules/app/views

    Also, you can use "Standart Pages" enabling the "Jobs & Experts Pages" add-on in Jobs -> Settings -> General Settings.

    Let me ping the developer to get more information.

    Cheers, Luís

  • Hoang Ngo
    • Code Slayer

    Hi mustafa,

    I hope you are well today.

    Yes you can override the views by something like this

    add_filter( 'ig_view_file', 'custom_je_view', 10, 2 );
    function custom_je_view( $path, $view ) {
    	if ( $view == 'view-file-path' ) {
    		$path = 'abs_path_to_your_new_view.php';
    	}
    
    	return $path;
    }

    view-file-path is the view file name, example, if I want to update the expert form, I will put something like this expert-form/main

    If you have any additional issues, please let us know and we'll be happy to help.

    Best regards,
    Hoang

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.