If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
I have put a picture on a page and wanted to link to a page if someone klick on the picture.
But it does not work.
How can I do this to put a link to a page if someone klick on the picture.
Thanks a lot.
The replete theme is great and your service here is excellent!
Add the nolightbox class.
Something like this
<a class="nolightbox" target="_blank" href="http://www.kriesi.at"><img class="alignnone size-full wp-image-317" alt="2" src="http://localhost/kriesi/replete/wp-content/uploads/2012/04/2.jpg" width="1000" height="650" /></a>
Thanks, but I am not a professional.
HOW can I do it?
Where shall I add the nolightbox class ??
On the anchor tag <a class=”nolightbox”. When you insert an image, the code should look something like the one above.
In what area did you add your image? Post? Page?
Upload the image using media then edit it to get the full url to the image. Now create a new page or post and make sure you are in the Text and not Visual edit view. Then just add the normal html code for a link with an image.
<a href='http:// (Purchase code hidden if logged out) -image.com" title="title of link" ><img src="http:// (Purchase code hidden if logged out) -image.com" alt="image of a house" /></a>
just replace the 2 urls (one url is image and second url is location of page where image clicking will lead to)
The topic ‘Link form a picture to a page?’ is closed to new replies.