Text Widget Image Link to Page
Hi - I have an image showing on my home page using a text widget. I'd like this image to work as a link to another page (not shown on my menu bar).
How do I do this? Not seeing this info on any posts. Apologies if it is... any help is appreciated. Zona |
you should do a google search 'html link syntax' to see how to create the link syntax
|
JuggleDad: Thanks for pointing me in the right direction.
For anyone else wanting to do this here is the code that will make this work: <a href="PERMALINK OF PAGE YOU WANT OT LINK TO"> <img src="wp-content/themes/atahualpa/images/widgets/NAME OF YOUR IMAGE.jpg" /> </a> Many thanks to JD and others providing their expertise on this site! All the best, Zona |
Note: the '<img src=' can be any valid html address so it could be
<img src="http://yourdomain.com/YOUR_IMAGE.jpg" /> I assume Zona created a folder called 'widgets' in the 'atahualpa/images' folder since one does not normally exist. A better place to put the images would have been in 'wp-content/uploads/my_images', this way when you change theme versions, you don't have to worry about the images. Then your <img would be <img src="http://yourdomain.com/wordpress/wp-content/uploads/my_images/YOUR_IMAGE.jpg" /> |
All times are GMT -6. The time now is 12:28 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.