CMS Development

ChrisCom
Member

Old domain causing post.featured_image to error

We've got an old domain that we've had to remove however because somethings appear to be hardcoded its erroring when I called "post.featured_image".

 

I've tried relinking the image in the post and also adding it again on the featured image list but its not having it, still displaying the old domain in the target path.

 

Does anyone know how I can change this please?

0 Upvotes
3 Replies 3
dennisedson
HubSpot Product Team
HubSpot Product Team

Old domain causing post.featured_image to error

@ChrisCom , could you post the code here?

0 Upvotes
ChrisCom
Member

Old domain causing post.featured_image to error

Here we go:

style="background-image: url({{ post.featured_image }})

 

It seems if I re-upload the image and select it again then it changes the URL from the old to the new. Annoying that it needs to be an absolute url. 

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Old domain causing post.featured_image to error

@ChrisCom is it the featured image that you set in the blog post settings?

if so, you would use

{{ post.post_list_summary_featured_image }}

i may be confusing what you need so apologies if this is off the mark