WordPress.org

Ready to get started?Download WordPress

Forums

How to insert an image into the Text widget (3 posts)

  1. zayb321
    Member
    Posted 3 years ago #

    WP 2.9.2 Frugal stock theme URL fcutah.com

    I have uploaded my image to the WP library and followed the instructions form another post:

    "You can use the Text Widget supplied with WP to display a picture in the sidebar if your theme is widget-enabled.

    First go to Admin->Media->Add New and upload the image you want. Once it is uploaded, click in the File URL box, hit CTRL-A CTRL-C to select and copy the URL.

    Then go to Appearance->Widgets and drag the text widget into the sidebar. In the text area, enter '<img src="', then CTRL-V to paste in the URL of your picture. Type '" />' to close the img tag. Click Save.

    You may need to use the height and width attributes to size the image. You should end up with something like this:

    <img src="http://mysite.com/wp-content/uploads/2009/12/MyPicFile.jpg" width=200 height=120 /> "

    The URL form the Media library for my image is diffeent form the one in the example above:

    " http://fcutah.com/wp-content/uploads/2010/06/6-2-2010-9-25-16-AM.png "

    When I add <img src=" & /> to the above link & insert in the text area of the widget, the image does not go to my web page & the current content changes location within the web page.

    Thank you

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

    did you have quotation marks before and after the image url?

    the line should look like:

    <img src="http://fcutah.com/wp-content/uploads/2010/06/6-2-2010-9-25-16-AM.png" />

  3. zayb321
    Member
    Posted 3 years ago #

    That worked. Thank You

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.