Content Strategy & SEO

JHeim
Participant

HubSpot Supported Variable not Working

SOLVE

{{ content.featured_image }} is pulling in no value when testing with Structured Data Testing Tool

 

Anyone know why and if there is a fix? It meets HubSpot Supported Variables.


schema work.PNG

0 Upvotes
1 Accepted solution
alyssamwilie
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

HubSpot Supported Variable not Working

SOLVE

For a listing page I'd usually go for either just your organization data or a webpage schema type.

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.

View solution in original post

10 Replies 10
alyssamwilie
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

HubSpot Supported Variable not Working

SOLVE

Hmm, I've used that variable in json schema before with no problem. Does the post your testing have a featured image set? If you right click > Inspect do you see the image URL showing up in your post's code?

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.
0 Upvotes
JHeim
Participant

HubSpot Supported Variable not Working

SOLVE

When I use:

 

{{ site_settings.logo_src }}

 

It correctly pulls in our logo URL, but when I use the featured snippet codes's suggested, it pulls no url value into the code.

0 Upvotes
alyssamwilie
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

HubSpot Supported Variable not Working

SOLVE

Would it be possible for you to link us to the page you're testing?

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.
0 Upvotes
JHeim
Participant

HubSpot Supported Variable not Working

SOLVE

blog.atltechnology.com

0 Upvotes
alyssamwilie
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

HubSpot Supported Variable not Working

SOLVE

Okay, so, it looks like you're using this code on the listing page which is why it's not working. You can't set a featured image for a listing page. If you want an image in your schema for the main blog page you would need to add the url yourself. If what you're actually wanting is schema for your posts you need to put your schema code in the Post Content of your blog code, not the Listing, and then test a singular post page.

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.
0 Upvotes
JHeim
Participant

HubSpot Supported Variable not Working

SOLVE

That makes sense. I caught on to that yesterday, but wasn't sure. I must have misunderstood the page I went to for help. 

 

Thank you!

 

Is there any sort of schema that I should implement for the listing page? 

0 Upvotes
alyssamwilie
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

HubSpot Supported Variable not Working

SOLVE

For a listing page I'd usually go for either just your organization data or a webpage schema type.

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.
JHeim
Participant

HubSpot Supported Variable not Working

SOLVE

Yes, a featured image is set in the post.

0 Upvotes
mike-ward
Key Advisor

HubSpot Supported Variable not Working

SOLVE

Agreed, should work.

If there is a featured image set, does the listings one work instead?

 

{{ content.post_list_summary_featured_image }}

 

Don't know why it would if the other doesn't, but could be worth a try?

0 Upvotes
JHeim
Participant

HubSpot Supported Variable not Working

SOLVE

I tried:

 

{{ content.post_list_summary_featured_image }}

 

Unfortunately, it retured blank also. 

image null.PNG

 

0 Upvotes