• I am trying to link a photo to a blog post in wordpress, I am using the Link button and it doesnt work. The photo retains the link URL after I hit update. It does however work when I link a photo to an outside site. Any ideas?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Not sure what you mean by “retains the link URL” but you can just do it the html way:

    Select the photo by clicking on it and then click the html view tab at the top of your editor.

    The photo should have a code similar to this:

    <img src="path/to/image.jpg" />

    Before that tag put this:

    <a href="https://www.google.com/">

    and after it put this:

    </a>

    Of course you’ll replace google’s url with the one you are trying to link the photo to.

    Thread Starter henleylover

    (@henleylover)

    Each photo has its own URL, so you can identify each photo by the link etc. Each time we use the link button, it just doesnt link the photo at all. We can’t use the html coding, we tried and when we do that the entire page is totally cattywampass, everything shifts all over the place. Any ideas? I just reinstalled WP overwriting the old files and that didnt work.

    Are you trying to add images to pages? Or link to a photo that’s on another site?

    Thread Starter henleylover

    (@henleylover)

    I add a photo to a page, I want to link that photo to a blog post on my same site. So when the public clicks the photo, it goes to a blog post about that photo.

    Thread Starter henleylover

    (@henleylover)

    https://www.westagethepeninsula.com/portfolio/ if you go to this page and click on the first photo on the page, this works correctly it takes you to the blog post about this photo.

    Photo number 2 doesnt work, it just takes you to the photo. So when I work on photo #2 and I use the URL for the blog post I want to link it too, it doesnt accept it, it just retains the photos url.

    Photo number 2 doesnt work, it just takes you to the photo

    Umm…no…it points to another blog post. Remember to press CTRL and F5 simultaneously when viewing an updated page/site. Or try emptying your browser cache. This should ensure that your web browser fetches a fresh copy of the page rather than serving up an out-dated copy from your own cache.

    And please re-consider the use of the JavaScript right-click disable script that you’re using. Anyone who is relatively clueful can get around that in about 5 seconds flat (if that) but it can be a significant problem for some users who rely on access to the right-click context menu in their own web browser. And, for tech types, it’s more than a little aggravating to be asked to check out a problem on a page only to find that their ability to view the page source code is being disrupted.

    Thread Starter henleylover

    (@henleylover)

    No, photo #2 doesnt link to a blog post. its the same photo, i want it to go here https://www.westagethepeninsula.com/sold-san-francisco-russ-home/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘The Link Button Doesnt Work’ is closed to new replies.