• ljesper

    (@ljesper)


    hi everyone, is there an easy way to link to last post with tag on a static page?

    e.g. I would like to add a link to the last video post (tagged: video) on my front page, but how do I do it?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You can only deep link to HTML elements which have an ID attribute. For example:

    <div id="video-1234">
      <iframe src="https://example.com/video-1234/"></iframe>
    </div>

    Then the URL linking there could be https://my-site.com/videos/#video-1234

    Actually, JavaScript could be used to find other elements and then scroll to that location, but that’s a lot more involved than a simple deep link to an element with an ID attribute.

Viewing 1 replies (of 1 total)
  • The topic ‘link to last post with tag?’ is closed to new replies.