Thread Starter
LynJon
(@lynjon)
I’m still desperately trying to find a solution for this problem. Studying the source code I think I need to find the file where the div breadcrumb-list is, remove it and then add it to the file that displays the header but I can’t find either. Anyone have any ideas please? The problem can be seen on http://www.watals.info
Thanks
hello lynee,
The easier solution would be to go to the themes root directory => inc =>catchresponsive-breadcrumb.php => find and change the code from
add_action( 'catchresponsive_after_header', 'catchresponsive_add_breadcrumb', 50 );
to
add_action( 'catchresponsive_after_header', 'catchresponsive_add_breadcrumb', 9 );
To save your personal customization please use child theme (check here).
Regards, bplv
Thanks bplv for your support.
To edit any theme files, please build child theme first. You shouldn’t edit any theme files directly, as when you update the theme, all your edits will be reverted back to original. So, to me safe always build child theme, you can download our sample child theme from https://catchthemes.com/blog/create-child-theme-wordpress/
Then you can remove breadcrumb from current position by adding the following code in your child theme functions.php file
// Remove breadcrumb from current position
function unhook_catchresponsive_functions() {
remove_action( 'catchresponsive_after_header', 'catchresponsive_add_breadcrumb', 50 );
}
add_action( 'init', 'unhook_catchresponsive_functions' );
Then to add breadcrumb before menu, add the following code in your child theme functions.php file
//Adding breadcrumb before menu
add_action( 'catchresponsive_after_header', 'catchresponsive_add_breadcrumb', 9 );