WordPress.org

Support

Support » How-To and Troubleshooting » How to insert an image into the Text widget

How to insert an image into the Text widget

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Michael

    @alchymyth

    Forum Moderator

    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" />

    That worked. Thank You

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to insert an image into the Text widget’ is closed to new replies.