Creating anchors in a blog page which can be accessed from other pages and blog pages

I have seen previous threads on related to this topic, but the answers are not clear. I would like to create anchors within a blog post which can be accessed from other blog posts. This gives a better user experience than simply referencing another page via its URL - I want to reference text or images inside the page concerned. As far as I can see, only sections within the same post can be accessed from an anchor inside a blog post. Is this still the case? Is there a work around?

So, I think this used to be native, where you could reference an element by its tag in the URL and Wix would automatically scroll to it once loading the page, but it no longer seems to be the case

Instead, it can be achieved with a short code:

import wixLocation from 'wix-location-frontend'

const anchor = wixLocation.query.anchor
if (anchor) $w('#' + anchor).scrollTo()

So now, the URL https://example.com/post/some-post-id?anchor=some-section
Will automatically scroll to a section tagged #some-section

Thanks - I had a feeling the only answer might be to insert the code manually. I’ll have a look at that.