Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #99498
    Orlando Mergal
    Participant

    Hi:

    If I activate Breadcrumbs on my business site (http://www.accuratecommunications.com) they appear between my top menu and my Featured Slider. That looks awful.

    Is there a way to have them appear directly below my Featured Slider?

    #99499
    Orlando Mergal
    Participant

    Sorry, please notify me

    #99530
    Pratik
    Keymaster

    Hi Orlando,

    For that, you will need to make some modifications via child theme.

    First, create a child theme for current theme. Check tutorial here for details on creating a child theme.

    Then, add following code to child theme’s functions.php file.

    
    /**
     * Function to move breadcrumb in child theme below slider
     */ 
    function catchresponsive_child_move_breadcrumb() {
    	remove_action( 'catchresponsive_after_header', 'catchresponsive_add_breadcrumb', 50 );
    	add_action( 'catchresponsive_before_content', 'catchresponsive_add_breadcrumb', 15 );
    
    }
    add_action( 'init', 'catchresponsive_child_move_breadcrumb' );
    

    Let me know how it goes.

    Regards,
    Pratik

    #99541
    Orlando Mergal
    Participant

    You forgot to add the link for the tutorial.

    #99547
    Pratik
    Keymaster

    Please hover above here, the link is there.

    Here it is again: http://catchthemes.com/blog/create-child-theme-wordpress/

    #99554
    Orlando Mergal
    Participant

    I did as you suggested but now I don’t have breadcrumbs anywhere.

    Take a look: http://www.accuratecommunications.com

    #99555
    Orlando Mergal
    Participant

    Actually, erase that. I do have breadcrumbs but they are still above the Featured Slider

    #99626
    Pratik
    Keymaster

    I checked the site and it is still using the parent theme. You will need to set the theme to child theme.

    Can you check and let me know, then I will check it again.

    Regards,
    Pratik

    #99671
    Orlando Mergal
    Participant

    That’s because it’s breaking my site.

    When I upload the child theme and activate it I get a white screen of death.

    Then, when I remove the child theme via FTP I’m left with a broken site, forcing me to replace the original theme with a fresh copy.

    I guess I’m a little over my head in this one. I’ll live without the breadcrumbs.

    #99727
    Pratik
    Keymaster

    Maybe you can post the content of your child theme’s functions.php file here, then I can see what’s wrong?

    #99765
    Orlando Mergal
    Participant

    <?php
    /**
    * Child Theme functions and definitions
    *
    */

    /**
    * 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’ );
    }

    /**
    * Function to move breadcrumb in child theme below slider
    */
    function catchresponsive_child_move_breadcrumb() {
    remove_action( 'catchresponsive_after_header', 'catchresponsive_add_breadcrumb', 50 );
    add_action( 'catchresponsive_before_content', 'catchresponsive_add_breadcrumb', 15 );

    }
    add_action( 'init', 'catchresponsive_child_move_breadcrumb' );

    #99799
    Pratik
    Keymaster

    Can you try code given here: http://pastebin.com/b2QAe2VE and activate child theme?

    #99845
    Orlando Mergal
    Participant

    Yes, it seems to work. But when I activate the child theme all the settings and custom CSS that I have on my regular theme disappear and I’m left with the theme the way it comes.

    Right now I don’t have the time to go over all my settings one by one and figure out what I had done in the original.

    Unless there’s a way to export all those settings and import them into the child theme I think I’ll be better off leaving things the way they were.

    #99937
    Pratik
    Keymaster

    The settings should have transferred unless there is an issue. Once its done, you will need to go through it one by one I am afraid. Please let me know if you need further help.

    Regards,
    Pratik

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Move breadcrumbs below the Featured Slider’ is closed to new replies.