Adding PHP code to Header template
-
Hello,
I am adding php code to the header:
<?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?>
[Please post code snippets between backticks or use the code button.]
This is a code from Yoast, that is supposed to uploaded to the Template file of the theme that has the Yoast SEO plugin installed. It makes breadcrumbs that appear in google when your site appears in the search results.
I added the code to the Header template file like so:
(the code from above will be on the bottom of this run of code.[Code moderated as per the Forum Rules. Please use the pastebin]
Is this the correct place to put this code?
- The topic ‘Adding PHP code to Header template’ is closed to new replies.