barnum — 2013-08-03T09:03:09-04:00 — #1
Hope I can explain this correctly...
I want to add a link to a photo in my images file, but I want it to show as centered, and at larger size.
I tried this: <a href="images/hillbilly.png" width="300" height="200"> PHOTO</a> and while it works, the photo is small and not centered. I realize I could use the <img src=, etc...> and actually display the photo, but I want the photo to be a surprise when someone clicks on a word.
Is there something else I can do without making the photo an html page?
ralphm — 2013-08-03T09:06:41-04:00 — #2
No. Not unless you want to do something fancier like have the image on the page but hidden until the user clicks the link. But that will involve some CSS acrobatics. (Not too hard, but you still may not like it.) Putting it on its own HTML page is pretty simple, though, so that's what I'd suggest.
barnum — 2013-08-03T12:13:07-04:00 — #3
Okay, I made a separate page (html) for the photo. Now how do I link to it from say Wordpress.
Do I reference it as <a href="http://www.website/photo.html">? I have tried a few things but nothing seems to work.
Maybe it's Wordpress that's confusing me.
ralphm — 2013-08-03T17:58:00-04:00 — #4
That sounds to me like it should work fine. Perhaps if this is being entered into a WP entry field you should instead type the link text, highlight it, set it as a link in the editor and then provide the URL—that is, let WP turn it into a link. Feel free to post a link.
system — 2014-10-08T00:39:44-04:00 — #5
This topic is now closed. New replies are no longer allowed.