Possible to add schema markup to a specific blog author's bio page?
SOLVE
We would like to add a personalized schema markup to only one of our blog author bio pages - is that possible? I know that the blog author listing page doesn't have its own template, and it's part of the blog listing template, so not sure if there is a way to do this. Is there a way to add the schema to the <head> section for only one particular blog author bio?
HubSpot doesn’t natively support adding custom code to the <head> section of individual author bio pages (e.g., /blog/author/author-name). These pages are dynamically generated and don’t have their own editable templates. While HubSpot allows adding custom head HTML for blog posts, it doesn’t offer this option for author pages. https://knowledge.hubspot.com/blog/create-and-manage-your-blog-authors
Based on AI suggestions, there are a couple of workarounds you can try using HubL conditional logic in the main blog listing template, which is typically inherited by author pages.
Option 1: Conditional Schema Markup Based on Author
You can add schema markup in the <head> section of your blog listing template and wrap it with an if condition based on the author slug:
No, the "Header HTML" section in HubSpot blog settings is not dynamic and doesn’t support HubL logic (like if statements). You need to place this code inside your blog listing template file in Design Manager, specifically in the <head> section.
Navigate to Marketing > Files and Templates > Design Tools
Open your blog listing template (typically named blog-listing.html or similar)
Add the conditional schema code within the <head> block
✅ If my reply answered your question, please mark it as a solution to make it easier for others to find.
HubSpot doesn’t natively support adding custom code to the <head> section of individual author bio pages (e.g., /blog/author/author-name). These pages are dynamically generated and don’t have their own editable templates. While HubSpot allows adding custom head HTML for blog posts, it doesn’t offer this option for author pages. https://knowledge.hubspot.com/blog/create-and-manage-your-blog-authors
Based on AI suggestions, there are a couple of workarounds you can try using HubL conditional logic in the main blog listing template, which is typically inherited by author pages.
Option 1: Conditional Schema Markup Based on Author
You can add schema markup in the <head> section of your blog listing template and wrap it with an if condition based on the author slug:
Possible to add schema markup to a specific blog author's bio page?
SOLVE
Thank you for your help here - would I add it to the "Header HTML" section in the blog template in Hubspot settings (vs in the Design Manager)? And going with option 1, wouldn't the author variable be: content.blog_post_author.slug?
No, the "Header HTML" section in HubSpot blog settings is not dynamic and doesn’t support HubL logic (like if statements). You need to place this code inside your blog listing template file in Design Manager, specifically in the <head> section.
Navigate to Marketing > Files and Templates > Design Tools
Open your blog listing template (typically named blog-listing.html or similar)
Add the conditional schema code within the <head> block
✅ If my reply answered your question, please mark it as a solution to make it easier for others to find.
I got this to work with your help, thank you! Option 1 worked using the conditional based on author, but wasn't working with the content.blog_post_author variable .slug property for some reason. This property worked: {% if blog_author.display_name == "John Doe" %}