Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #78410
    LynJon
    Member

    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.

    #78490
    Sakin
    Keymaster

    @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 );
    #78553
    LynJon
    Member

    Thanks 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,
    Lynne

    #78555
    Sakin
    Keymaster

    Sorry 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 );
    #78815
    LynJon
    Member

    Thanks 🙂 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!

    #78907
    Sakin
    Keymaster

    @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 );
    #79015
    LynJon
    Member

    Thank you so much 🙂 This worked perfectly! (and I learned the importance of making a child theme on the way ;))

    #79017
    Sakin
    Keymaster

    @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

    #79112
    LynJon
    Member

    Done! 🙂

    #79113
    Sakin
    Keymaster

    @LynJon: Thanks a lot 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Breadcrumb’ is closed to new replies.