Hi there!
What are the best practices to implement YOAST SEO Breadcrumbs on the whole site except on the home page in Enfold?
Are there means to custom the breadcrumbs such as alignment or colors for instance?
Thanks!
Olivier
Hey Olivier,
It depends on where you want them, you could try this to output them after the main container for example:
function oliver_add_yoast_breadcrumbs() {
echo do_shortcode('[your-shortcode]');
}
add_action( 'ava_after_main_container', 'oliver_add_yoast_breadcrumbs');
Best regards,
Rikard
Hey Rikard!
Thank you, I would like to have them on the top of all pages exept on the home page, just below the main menu bar.
Are there means to customise the color of the fonts?
Thank you again and best regards,
Olivier
Hi,
Please try this code then:
function oliver_add_yoast_breadcrumbs() {
if ( ! is_home() && ! is_front_page() ) {
echo do_shortcode('[your-shortcode]');
}
}
add_action( 'ava_after_main_container', 'oliver_add_yoast_breadcrumbs');
I’m not sure which colours you are looking to change, please clarify.
Best regards,
Rikard
Hi Rikard,
Thank you very much for your help, we will not implement the breadcrumbs until some days so I don’t know about the colors yet, can you let the thread open?
Thanks again and best regards,
Olivier