WordPress.org

Ready to get started?Download WordPress

Forums

Create a button/badge with link and Image (4 posts)

  1. ourfamilystone
    Member
    Posted 3 years ago #

    I'm sure this has been asked before, but I've searched and couldn't find the answer.

    I'd like to create a button linking to my Salvation Army Donation Kettle for my sidebar. I have a link and I have an image but I can't figure out how to make them go together and put them into my sidebar.

    I'm terrible at code, so if anyone has an easy way or plug in I can use I'd greatly appreciate it!

    Thanks in advance!

    Ashley

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    <a href="http://linkurl"><img src="http://imageurl" alt="" /></a>

    you can use this code in a textwidget

    http://www.w3schools.com/html/html_links.asp
    http://www.w3schools.com/tags/tag_IMG.asp

  3. ourfamilystone
    Member
    Posted 3 years ago #

    Thanks, but where do I find the image URL? I know I'm such a novice, but I'm trying :-)

  4. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    if you have the image on your computer, login to your wordpress dashboard;
    click the 'Media' button - 'add new'
    click 'select files'

    then browse in the popup window and select the image from your computer;

    when the image is uploaded, scroll down a bit;
    copy the file url;
    click 'save all changes'

    use this file url in the linked image/button code

Topic Closed

This topic has been closed to new replies.

About this Topic