Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   Text Widget Image Link to Page (http://forum.bytesforall.com/showthread.php?t=5468)

Zona Jan 24, 2010 02:09 AM

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

juggledad Jan 24, 2010 06:58 AM

you should do a google search 'html link syntax' to see how to create the link syntax

Zona Jan 25, 2010 08:11 PM

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

juggledad Jan 26, 2010 04:17 AM

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 04:39 PM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.