Breadcrumps crash site

#156199
  • Resolved Maria
    Rank Math free

    hello
    I am just begining using your pluggin, ant the breadcrumps made my web to crash
    I use betheme theme

    I enable breadcrump in rankmath configuration, and in my theme child, in the functions.php last line, I ad

    if (function_exists(‘rank_math_the_breadcrumbs’)){
    rank_math_the_breadcrumbs();
    }

    As soon as I do this, the site backend crashes showing the kind of error as follow, in three diferent lines

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/4/d276499265/htdocs/clickandbuilds/mysite/wp-content/plugins/seo-by-rank-math/includes/template-tags.php:39) in /homepages/4/d276499265/htdocs/clickandbuilds/mysite/wp-includes/functions.php on line 6360

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/4/d276499265/htdocs/clickandbuilds/mysite/wp-content/plugins/seo-by-rank-math/includes/template-tags.php:39) in /homepages/4/d276499265/htdocs/clickandbuilds/musite/wp-admin/admin-header.php on line 9

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/4/d276499265/htdocs/clickandbuilds/mysite/wp-content/plugins/seo-by-rank-math/includes/template-tags.php:39) in /homepages/4/d276499265/htdocs/clickandbuilds/mysite/wp-admin/includes/misc.php on line 1310

    Would you be so kind to say what i am doing wrong?

    I also do not want to show in the inicio page

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    Please use the full code and this should be inserted in your theme’s header.php file.
    <?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>

    I also do not want to show in the inicio page

    Could you provide more details for this issue? You can share the affected URL as well in the designated Sensitive Data section
    Sensitive Data Section

    It is completely secure, and only our support staff has access to that section.

    I hope that helps. Thank you, and looking forward to your update.

    Maria
    Rank Math free

    thanks
    for the first problem

    I have a plugin “Insert Headers and Footers” because betheme is a bit complicated for me, and in the child time I only access to stylesheet, themefuctions, and them customcss and custom js

    You mean to insert the code in <head> section of the plugin?

    thanks

    Hello,

    Thank you for the follow-up.

    You can use this plugin to add the breadcrumbs code to your theme’s header.php file. Then use this code instead:

    add_action('wp_head', 'RM_Breadcrumbs');
    function RM_Breadcrumbs(){
    ?>
    <?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>
    <?php
    };

    Here’s a screencast for your reference:
    https://i.rankmath.com/0saXMn

    I hope that helps. Thank you, and please don’t hesitate to contact us if you need further assistance.

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Breadcrumps crash site’ is closed to new replies.