Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Child Theme Breadcrumbs No Longer Working

Home / Forums / Pinnacle Theme / Child Theme Breadcrumbs No Longer Working

This topic is: Resolved
[Resolved]
Posted in: Pinnacle Theme
June 30, 2017 at 10:27 pm

I applied an update today that has me stymied.

I have used a child theme as long as I’ve used Pinnacle and never had problems with getting it to use files from my child theme folder. Today I’m encountering just such a problem. I went through all of my child theme files tonight thinking that perhaps there had been a larger change to the theme that had broken my changes. I was prepared to have to re-invent my wheel but I found only minor differences. I went ahead and updated mine to match those minor differences although none seemed to be related to breadcrumbs as far as I could tell. I figured at least I would have ironed out any differences other than the things I had purposefully changed.

After all that, still I was not seeing my revised breadcrumbs. After looking at the code output for the breadcrumbs it seemed like they were the default breadcrumbs rather than the ones I had used. I finally decided to try replacing the main themes /lib/breadcrumbs.php file with my own to see what would happen. Sure enough as soon as I replaced the main theme file with my own, my breadcrumbs were back as intended.

Obviously that’s not an optimal fix, but I have yet to find anything online that suggests why WordPress would ignore the file I have in my child theme folder so I’m hoping for some assistance?

I stupidly did not keep a copy of the Pinnacle Premium theme folder from just before the update I did tonight. I am not used to having any issues with updates from Kadence! You’ve spoiled me. But I did have one from several months ago and was looking at the functions.php file and noticed that sometime in the past several months there was a change to how the breadcrumbs (and other) files are loaded. Is this related to my problem at all?

This is the line from functions.php now:

require_once( trailingslashit( get_template_directory() ) . ‘lib/breadcrumbs.php’);

This is how it looked some months back (but not necessarily just before I updated today):

require_once locate_template(‘/lib/breadcrumbs.php’);

If this is connected to my problem, is there a way to redirect it to my child theme folder through my child’s functions?

I don’t know if you need to see my site to help with this, but here’s a page that uses the breadcrumbs:

But note, at the moment, I am using my not-so-perfect solution of having replaced the main theme breadcrumbs.php file since I can’t get this to work otherwise at the moment and would rather it looked nice to visitors than not.

If there are any other details you need to figure out this mystery, just let me know.

Thanks!

Mark

  • The forum ‘Pinnacle Theme’ is closed to new topics and replies.