Breadcrumbs not showing up in pages when using a child theme

#520267
  • Resolved leandroprz
    Rank Math free

    Hi,

    I recently switched to a child theme to clean up my code and noticed that the Rank Math’s breadcrumbs are not showing up in my pages post type.

    This is the code I’m using in page.php:

    <?php if ( function_exists( 'rank_math_the_breadcrumbs' ) && !is_page( array (1027, 1134, 1043, 1138, 1082, 1129, 1093, 1194, 1109, 1195, 3, 1206, 1025, 1226, 1514, 1517, 1518, 1521, 28, 1565, 1580, 22, 1599, 29039) ) ) rank_math_the_breadcrumbs(); ?>

    Please check this page: https://leandroperez.art/academia/tutoriales-gratuitos/

    This is what I should see: https://i.ibb.co/P10QvSt/con-breadc.png

    But this is what I get instead (no breadcrumb): https://i.ibb.co/khzTTJJ/sin-breadc.png

    The theme I’m using is called Fluxus.

    The main theme works fine, the issue appears when using the child theme.

Viewing 1 replies (of 1 total)
  • Hello,

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    Depending upon the theme you use, the theme file where you should add the breadcrumbs function would vary. In most themes, it would be either the single.php file or the header.php file. Try adding the code to those locations mentioned above to see if that works for you.

    If that doesn’t work, you can get in touch with your theme provider to learn where you should add that PHP code in your child theme to show breadcrumbs on your site, since it was working earlier and now not working with your child theme.

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Breadcrumbs not showing up in pages when using a child theme’ is closed to new replies.