Search for: Log In Free Support [Resolved] Where do I insert code for Yoast BreadCrumbs Home › Forums › Support › Where do I insert code for Yoast BreadCrumbs This topic has 3 replies, 2 voices, and was last updated 5 months, 2 weeks ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts August 12, 2019 at 11:26 am #982325 Jude I need to insert the code below in my theme to enable Yoast Breadcrumbs as stated in this article; https://kb.yoast.com/kb/implement-wordpress-seo-breadcrumbs/. <?php if ( function_exists(‘yoast_breadcrumb’) ) { yoast_breadcrumb( ‘<p id=”breadcrumbs”>’,'</p>’ ); } ?> I want to insert the code at this point sitewide https://prnt.sc/orr04c Thank you August 12, 2019 at 11:46 am #982332 DavidStaff Customer Support Hi there, you can insert it using the hook element. https://docs.generatepress.com/article/hooks-element-overview/ The before_content hook will place it there. This visual guide shows where the main template hooks are: https://docs.generatepress.com/article/hooks-visual-guide/ Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ September 21, 2020 at 11:15 pm #1453289 Tushar Hello David When I will put the Yoast breadcrumb code (mention below) in the Hook, am I need to click on execute PHP option or not? <?php if ( function_exists(‘yoast_breadcrumb’) ) { yoast_breadcrumb( ‘<p id=”breadcrumbs”>’,'</p>’ ); } ?> September 22, 2020 at 1:32 am #1453419 DavidStaff Customer Support Hi there, yes, Execute PHP is required. Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In