Forums

Linking to other pages in your WP site? (6 posts)

  1. stanwelks
    Member
    Posted 2 years 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!

  2. Rev. Voodoo
    Member
    Posted 2 years ago #

    Are you looking to code the graphic in as part of your theme?

  3. stanwelks
    Member
    Posted 2 years 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!!!!

  4. Rev. Voodoo
    Member
    Posted 2 years ago #

    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

  5. stanwelks
    Member
    Posted 2 years 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!!!

  6. stanwelks
    Member
    Posted 2 years 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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags