stanwelks
Member
Posted 3 weeks ago #
I want to make this graphic, when clicked, link to another page within my WordPress site.
<img src="http://www.mywordpresssite.com/iphone-3gs.jpg" alt="#" height="#" width="#">
1.) If I make a new page in my Wordpress site, how do you link to it?
Thanks!
Are you looking to code the graphic in as part of your theme?
stanwelks
Member
Posted 3 weeks ago #
I do not want the same graphic to be permanent there, I will swap it out over time with other graphics. At some point, I may even want this graphic to rotate randomly with other graphics.
Thanks!!!!
well...the simple answer is (and I'm making a lot of guesses/assumptions here)
1st...the pics are stored in a folder called images in your theme (you can adjust accordingly, but this code is relevent to your specific theme you are using)
Place this code in your theme wherever you want the pic
<a href="http:your-link"><img src="<?php bloginfo('template_url'); ?>/images/your-image.png" width="x" height="x" alt="your title!" /></a>
of course you'll most likely need to wrap this code in a div, and style it a bit in your css, but it's a start
stanwelks
Member
Posted 3 weeks ago #
Hi RVoodoo,
Thanks for your help!!!
I am not sure where the images will be stored yet, I am new to Wordpress and am still trying to determine if it is best to put the images directly in a images folder in the theme folder or other.
1. Can I place the code you provided in a text or PHP code widget? I want it to display in a widget.
Thanks!!!
stanwelks
Member
Posted 3 weeks ago #
How do you link to a page created in Wordpress? So if I create a new page within the program, what is the page name? I do not see a page name to link to just the title I give it.
Thanks!