- This topic has 13 replies, 2 voices, and was last updated 7 years, 7 months ago by Pratik.
-
AuthorPosts
-
September 16, 2016 at 7:45 pm #99498Orlando MergalParticipant
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?
September 16, 2016 at 7:45 pm #99499Orlando MergalParticipantSorry, please notify me
September 17, 2016 at 10:52 am #99530PratikKeymasterHi 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,
PratikSeptember 17, 2016 at 7:48 pm #99541Orlando MergalParticipantYou forgot to add the link for the tutorial.
September 17, 2016 at 8:05 pm #99547PratikKeymasterPlease hover above here, the link is there.
Here it is again: http://catchthemes.com/blog/create-child-theme-wordpress/
September 17, 2016 at 9:20 pm #99554Orlando MergalParticipantI did as you suggested but now I don’t have breadcrumbs anywhere.
Take a look: http://www.accuratecommunications.com
September 17, 2016 at 9:21 pm #99555Orlando MergalParticipantActually, erase that. I do have breadcrumbs but they are still above the Featured Slider
September 19, 2016 at 9:05 am #99626PratikKeymasterI 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,
PratikSeptember 19, 2016 at 6:29 pm #99671Orlando MergalParticipantThat’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.
September 20, 2016 at 10:25 am #99727PratikKeymasterMaybe you can post the content of your child theme’s functions.php file here, then I can see what’s wrong?
September 20, 2016 at 6:28 pm #99765Orlando MergalParticipant<?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' );September 21, 2016 at 9:57 am #99799PratikKeymasterCan you try code given here: http://pastebin.com/b2QAe2VE and activate child theme?
September 21, 2016 at 7:31 pm #99845Orlando MergalParticipantYes, 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.
September 22, 2016 at 9:18 am #99937PratikKeymasterThe 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 -
AuthorPosts
- The topic ‘Move breadcrumbs below the Featured Slider’ is closed to new replies.