Hello,
Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.
You have added the PHP code in the style.css which will never work.
Please go to the theme’s template folders and insert the code inside the header.php
or single.php
file.
If you are not sure, you can also open the functions.php
file and insert the filter below:
function rm_breadcrumbs( $content ) {
if ( function_exists('rank_math_the_breadcrumbs') && is_singular() ) rank_math_the_breadcrumbs();
return $content;
}
add_filter( 'the_content', 'rm_breadcrumbs' );
Let us know how that goes. Looking forward to helping you with this one.
Hola, ya he hecho el cambio y todo correcto.
Una pregunta: qué tengo que hacer para que la miga de pan no aparezca en la página de inicio?
Un saludo.
Hello,
Please replace the previous code with this one and see if you get the desired output:
function rm_breadcrumbs( $content ) {
if ( function_exists('rank_math_the_breadcrumbs') (!is_home() && !is_front_page() && is_singular() )) rank_math_the_breadcrumbs();
return $content;
}
add_filter( 'the_content', 'rm_breadcrumbs' );
Hope this helps.
We look forward to helping you.
Hola, intento poner este código en el archivo functions.php y me aparece este error:
https://ibb.co/pR1QwQJ
https://ibb.co/Tc285Qm
Hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
I’ve corrected the filter in your theme’s functions.php file.
Please check now your homepage and other pages as well if the breadcrumbs are appearing correctly.
Hope that helps.
Thank you.
Todo funciona correctamente. Una última duda: es posible que las migas de pan aparezcan antes del H1?
Hola, después del cambio que realizásteis para que no salieran las migas de pan en la página de inicio, veo que en esta página:
https://masvitaminas.net/mejores-vitaminas-para-el-cansancio/
los bloques de cluster que antes se veían correctamente, ahora se han desconfigurado.
Adjunto captura de pantalla y seguís teniendo el acceso a mi página.
https://ibb.co/DYbWFKz
https://ibb.co/FYTWHPx
Hello,
You can position the breadcrumbs above the H1 by adding them to a theme template file like header.php. Please contact your theme support for the the correct template file and position in the template file to add the breadcrumbs.
The solution above will also solve the broken layout you shared in the screenshots.
For now, I have disabled the breadcrumbs code but kept it in your theme functions.php file.
Hope that helps. Please let us know if you have questions.
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.