How to integrate RankMath breadcrumbs in to theme?
-
How to integrate RankMath breadcrumbs in to child theme using this manual
Next, you should add the following code to the appropriate location in your theme’s template file to display the breadcrumbs.
/**
* Use the following code in your theme template files to display breadcrumbs:
*/
<?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>
Note: Depending upon the theme you use, the theme file where you should add the breadcrumbs function would vary.
?
Ok, i do this by this instruction
You need to copy the file woocommerce/global/breadcrumb.php from the parent theme and add it to the child theme and on line 14 add the following code https://monosnap.com/file/qodfeNwVQpaXb9EEfQiRjQM6M3gAnF
But now i need a horizontal scroll bar for breadcrumbs like in theme by default
Hello,
Try to add the code below in Theme Settings -> Custom CSS.
.rank-math-breadcrumb {
overflow-x: auto;
}
Clear the cache and check how it works.
Kind Regards
Hello,
You are welcome! If you do not mind, can you please leave a 5 stars rating for our theme by going here: http://themeforest.net/downloads It will allow us to release more updates and provide dedicated support in the future. It would encourage our work a lot.
Have a good day!
Kind Regards
The topic ‘How to integrate RankMath breadcrumbs in to theme?’ is closed to new replies.