Archived topic
Breadcrumbs issue
15 replies · Started by max on November 17, 2020
Please guide us
right now we use rankmath
we want to implement Breadcrumbs on our site after category link at each post content?
<?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>
Hi there,
The generate_after_content hook with a hook element would be what you need:
https://docs.generatepress.com/article/hooks-element-overview/
https://docs.generatepress.com/article/hooks-visual-guide/#single-post
Make sure to check Execute PHP.
already follow what you suggest
but still not appear
This is the issue:
https://www.screencast.com/t/lPbyfJzS
More info here:
https://docs.generatepress.com/article/disallow-php-execution/
is it cause we use sucuri plugin
that make our code didn't appear on our site?
is it cause we use sucuri plugin
Do you mean security plugin?
If so that is likely the case.
hello, my breadcrumb still didn't appear until now
please help us to solve this issue
i didn't understand to solve this issue based on link that you share here
https://docs.generatepress.com/article/disallow-php-execution/
hello please respond my issue
still waiting until now
Hi there,
add this PHP Snippet to your site to allow PHP to be executed in the Hook Element:
add_filter( 'generate_hooks_execute_php', '__return_true' );
This document explains how to add the PHP:
thank you very much
we add via function.php in child theme
but how to adjust the font size for this breadcrumb
we want to make it smaller?
Hi,
You can adjust the font size with this CSS:
nav.rank-math-breadcrumb p {
font-size: 22px;
}
Hi,
How to add these breadcrumbs in Header-hero, just below the title?
Hi,
How to add these breadcrumbs in Header-hero, just below the title?
Hi @Nitin,
You'll need a plugin or a PHP snippet that has a shortcode you can add within your page-hero.
You can then add the PHP on the Header Element's code area. It allows any working shortcode to run by default.
Hi Elvin,
I add the PHP code to the header element's code area, still, it is not showing there.
Hi Elvin,
I add the PHP code to the header element’s code area, still, it is not showing there.
As this is someone else's topic, can you open a new topic for it?
So you can use the private information text to provide the site details so we can check.
We'll make sure to address it there. Thank you.