RankMath breadcrumbs in Newsbeat

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

Status: resolved

Tagged: 

Viewing 6 reply threads
  • Author
    Posts
    • #17796

      We just migrated from Yoast SEO to RankMath SEO
      So far, so good, we just have a question.

      In order to be able to use the RankMath breadcrumbs, the plugin instruct us to include this function in the theme. The noob question is: where?

      <?php if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs(); ?>

      OR

      [rank_math_breadcrumb]

    • #17798

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17835

      I did as you suggested Jacob, but still no Breadcrumbs (just a blank space where the Breadcrumbs should be). Any ideas are very welcome

    • #17840

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17844

      Of course Jabob, this is the code que put in /wp-content/themes/newsbeat-child/template-parts/global/breadcrumb.php
      Take a look please

      <?php
      /**
       * part: Breadcrumb
       *
       * @package wpthms
       * @subpackage Templates/Global
       */
      
      $ex_class = !empty( $args['ex_class'] ) ? ' ' . trim( $args['ex_class'] ) : '';
      
      ?>
      
      <div id="breadcrumbs" class="site-breadcrumbs hidden-print<?php echo esc_attr( $ex_class );?>">
      <?php
      
      do_action( 'newsbeat__site_before_site_breadcrumb' );
      
      if( function_exists( 'woocommerce_breadcrumb' ) && function_exists( 'is_woocommerce' ) && is_woocommerce() ){
      	woocommerce_breadcrumb();
      }else{
      	if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs();
      }
      
      do_action( 'newsbeat__site_after_site_breadcrumb' ); ?>
      
      </div>
    • #18409

      Hi Jacob, previously we shared the the code que put in /wp-content/themes/newsbeat-child/template-parts/global/breadcrumb.php

      Were you able to look at it?
      I hope so

      Take care.

    • #18410

      Finally solved, regards.

Viewing 6 reply threads
  • You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

© Copyright 2020 by wpthms.com. All Rights Reserved.