Tagged: breadcrumb
- This topic has 9 replies, 2 voices, and was last updated 9 years, 1 month ago by Sakin.
-
AuthorPosts
-
October 23, 2015 at 9:23 pm #78410LynJonMember
Hallo, I’m using Catch Responsive to try out a site (and loving it so far :)) my problem is that when breadcrumb are enabled it shows up between the black menu bar and the slider image. I’d like to place above the black bar but can’t find where, I’m guessing that I need to change the position of the call to breadcrumb? but I can’t find where I need to do that. Here is an example of how it is displaying now: http://www.watals.info Hopefully you can help.
October 26, 2015 at 12:33 am #78490SakinKeymaster@LynJon: For this level of customization, first you need to build child theme. For child theme, you can download it from http://catchthemes.com/blog/create-child-theme-wordpress/
Then in your child theme
functions.php
, first you need to add the following code to remove the breadcrumb:// Unhook default Catch Responsive functions function unhook_catch_responsive_functions() { add_action( 'catchresponsive_after_header', 'catchresponsive_add_breadcrumb', 50 ); } add_action( 'init', 'unhook_catch_responsive_functions' );
Then you need to add the following code to add breadcrumb above Primary Menu
//Adding Breadcrumb Primary menu add_action( 'catchresponsive_after_header', 'catchresponsive_add_breadcrumb', 10 );
October 26, 2015 at 9:21 pm #78553LynJonMemberThanks for your reply, I tried the above and I’m not sure what is going wrong but I have the following 2 errors:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'unhook_adventurous_functions' not found or invalid function name in /public/sites/www.watals.info/wp-includes/plugin.php on line 503
and
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'adventurous_slider_display' not found or invalid function name in /public/sites/www.watals.info/wp-includes/plugin.php on line 503
Also the original catch responsive is showing without any of my styling or ubermenu.
This is my functions.php file:<?php /** * Child Theme functions and definitions * */ // Unhook default Catch Responsive functions function unhook_catch_responsive_functions() { add_action( 'catchresponsive_after_header', 'catchresponsive_add_breadcrumb', 50 ); } add_action( 'init', 'unhook_adventurous_functions' ); //Adding Breadcrumb Primary menu add_action( 'catchresponsive_after_header', 'adventurous_slider_display', 10 ); /** * Loading Parent theme stylesheet * */ add_action( 'wp_enqueue_scripts', 'catchresponsive_child_enqueue_styles' ); function catchresponsive_child_enqueue_styles() { wp_enqueue_style( 'catchresponsive-parent-style', get_template_directory_uri() . '/style.css' ); }
I hope you can help
Thanks,
LynneOctober 26, 2015 at 10:21 pm #78555SakinKeymasterSorry try the following code:
// Unhook default Catch Responsive functions function unhook_catch_responsive_functions() { add_action( 'catchresponsive_after_header', 'catchresponsive_add_breadcrumb', 50 ); } add_action( 'init', 'unhook_catch_responsive_functions' ); //Adding Breadcrumb Primary menu add_action( 'catchresponsive_after_header', 'catchresponsive_add_breadcrumb', 10 );
October 30, 2015 at 1:03 pm #78815LynJonMemberThanks 🙂 When I use this code it does place a breadcrumb above the menu but doesn’t remove the breadcrumb under it, also its still not seeing the parent style sheet. Thanks again!
October 31, 2015 at 11:30 pm #78907SakinKeymaster@LynJon: Sorry gain. Replace code with the following:
// Unhook default Catch Responsive functions function unhook_catch_responsive_functions() { remove_action( 'catchresponsive_after_header', 'catchresponsive_add_breadcrumb', 50 ); } add_action( 'init', 'unhook_catch_responsive_functions' ); //Adding Breadcrumb Primary menu add_action( 'catchresponsive_after_header', 'catchresponsive_add_breadcrumb', 10 );
November 2, 2015 at 8:38 pm #79015LynJonMemberThank you so much 🙂 This worked perfectly! (and I learned the importance of making a child theme on the way ;))
November 2, 2015 at 10:16 pm #79017SakinKeymaster@LynJon: Thanks for your appreciation. If you like my support and Catch Responsive theme then please support us by providing your valuable review and rating at https://wordpress.org/support/view/theme-reviews/catch-responsive?rate=5#postform
November 4, 2015 at 7:36 pm #79112LynJonMemberDone! 🙂
November 4, 2015 at 7:52 pm #79113 -
AuthorPosts
- The topic ‘Breadcrumb’ is closed to new replies.