Support Forum

Add links to images when using TinyMCE

SH shortspring
shortspring
Member

There could be something easy I’m totally overlooking, but I can’t figure it out. I need to be able to add links to images while using TinyMCE. Right now if users add an image via URL (amazon s3 storage) and then link the image to the webpage using the insert link button, the image does not link to the webpage but to the image. 

If I pull up the html code for the post, it shows that the link SHOULD go to the correct webpage, but when clicked, the image appears, not the page. 

Then if I inspect element in chrome, it shows that it is linked to the image, not the page.

See it in action here: http://scrapstacks.com/scrap/80458

Thanks for your help. 

9 Answers

New Answer

MP Mr Papa
Mr Papa
Member

you have me confused…  the link you posted has nothing to do with the forum… and the image you linked to is use a php file to process the image/link (ie showphoto.php)

are we talking about the forum and the tinymce plugin (really just uses wp editor) for it?

MP Mr Papa
Mr Papa
Member

so can you now walk me through the steps you performed?  are you using html or the html editor of tinymce?

I definitely see the html linking to the image, not a page…

SH shortspring
shortspring
Member

Here are the steps:

1. copy url of image link by right clicking

2. click add image icon (tree)

3. paste in url of image

4. click insert

5. select image by clicking

6. click insert link/edit link button

7. paste in url of PAGE

8. submit

9. after the post goes live, the clicking on the image pulls up the image url, not the page.

 

MP Mr Papa
Mr Papa
Member

lol. by default we dont even enable the image button anymore since wp doesnt use it…

but a test on my dev site showed your steps to work fine…  will turn it on here temporarily and try it… if it works, will ask you to try it here too…  might help point to something else perhaps interfering on your site…

MP Mr Papa
Mr Papa
Member

well cant really test here since we use the image popup functionality…  its off on my local site…

but might still point us somewhere…  are you using the image enlargement popup on your site?  it actually looks like you are…   but the popup is redirecting to another page instead of a popup… which could mean you have some other popup image functionality (like highlslide) active on your site…

what happens if you disable the popup enlargment on forum – options – content settings and try again?

SH shortspring
shortspring
Member

Turning off the popup enlargement was one of my first steps. It didn’t fix the linking issue. I just turned off always use thumbnails and that seems to do the trick. :)

Oh, and thanks for scaring me…wasn’t expecting my son to jump out at me in this thread! :D

MP Mr Papa
Mr Papa
Member

eh, sorry, I did mean the thumbnails…

lol, sorry on scaring you with your son too! ;)