- This topic has 1 reply, 2 voices, and was last updated 2 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Where in the header.php can I add the following code that was provided by Yoast for adding breadcrumbs sitewide? Or do you have another suggestion for adding? I want them to appear on pages, categories, and posts
<pre style=”box-sizing: inherit; overflow: auto; font-family: monospace, monospace; font-size: 15px; background-color: #edf5fa; padding: 2px 5px; color: #000000;”><?php
if ( function_exists(‘yoast_breadcrumb’) ) {
yoast_breadcrumb( ‘<p id=”breadcrumbs”>’,'</p>’ );
}
?>
Hi Jennifer,
The best way for adding custom codes is to use the 3rd party plugin: https://wordpress.org/plugins/insert-headers-and-footers/
Kind Regards