There’s many plugins like Yoasts Local SEO which enable you to add your organizations business details to your website.
This enables search engines to include this information in the search results like this example:
If you prefer to use code rather than install another plugin, this tutorial provides the code which includes the same schema as Yoasts plugin.
The code uses custom fields which makes its easy to input your business details to each field which is then wrapped in schema and output into your HTML source code for the search engine bots to scan.
You can also control where your business details are displayed in your theme by using different hook positions and conditional tags.
The output on the front end and in the source code is exactly the same as what Yoasts Local SEO plugin produces however its far easier to modify & style.
Here’s the code for logged in members:
Leave a Reply
You must be logged in to post a comment.