How do I link a photo to a specific paragraph on a page on my website?

  • 1
  • Question
  • Updated 7 years ago
I have a lot of photos on a number of my pages, can I do something so that when someone scrolls down the page that photos appear when they scroll past that point? I have a picture gallery that has all of the applicable pictures in it.
Photo of Ed Parmenter

Ed Parmenter

  • 1 Post
  • 0 Reply Likes

Posted 7 years ago

  • 1
Photo of Donald

Donald

  • 2991 Posts
  • 37 Reply Likes
Anchor tags...

<!-- <a href="mysite.com/thispage.php#this-image"><img src="this-image.php" /></a>

<a name="this-image"></a>
My paragraph

When the image is clicked, it will scroll to the paragraph. #this-image needs to be unique for every image/paragraph on the page. The image link needs to match the a name "this-image" for example, "this-image2" as an example for another image. You can name it anything you want.... #image45 or #my-dog, then match it to the a name. If you can't get it, let me or someone know.

-->
Photo of Stefan

Stefan, Official Rep

  • 4448 Posts
  • 190 Reply Likes
Thanks, Donald!
Photo of Stefan

Stefan, Official Rep

  • 4448 Posts
  • 190 Reply Likes
Hello Ed

Your subject and description seem to be different questions to me. Donald has given you a good reply on your question mentioned in the subject. I'd like to add that you will then need to add your pictures using the HTML Widget and use the code Donald has provided above.

I'm not sure if I understood your question in the description correctly. If you'd like to have an answer on that as well, could you please explain it again?