If I put an image in a text widget, what should I set the size to?
-
I would like to put an image (png) in a text widget, but I want to make the dimensions fill up the box. What should I set them to and how would the code look? Thanks.
-
Where is your blog?
If you have Firefox as your browser this is excellent:
http://www.kevinfreitas.net/extensions/measureit/ -
Oooooohhhhh Mark, what a good find. Thanks for posting that link. It’s now firmly seated in my FF browser.
-
Oh… I never knew you could put a picture in a text widget. Since my text widget only has a cursor, how would I go about putting in a photo instead and what formats are supported?
Thanks,
Joyanne -
You have to put things in a text widget using HTML. The easiest way to do this if you’re not a coder is to compose the text widget as if it were a draft post, then click the HTML editor and copy. Paste that code into the text widget.
-
And here is the FAQ on putting an image in your sidebar http://faq.wordpress.com/2006/10/18/put-an-image-in-your-sidebar/
-
Hi
I have placed a link on my text widget. But the image size of the links are different. I looks shabby on my blog with different sizes. Can I set the size of these images, with some html codes? For experimenting I put the same link images on my home page and I could set the size of those images there.Experts please help.
My blog: http://investlogic.wordpress.com/
-
Exactly: the easiest way to get the code for a scaled-down image is to manage it in your visual post or page editor, then switch to the html editor, copy the result and paste it in the widget. But not every browser will respond correctly to such a code: it’s better to make a properly scaled-down copy of your image in an image editing application and upload that version.
Anyway the codes for (previously uploaded, of course) images are these:
Plain image
<img src=”URL”>
Scaled-down image (W & H = number of pixels, of course in proprtion to the original)
<img src=”URL” alt=”” width=”W” height=”H”>
Scaled-down image that links to full-size original when clicked
<img src=”URL” alt=”” width=”W” height=”H”>
Image that acts as a link to a webpage
<img src=”URL_of_image”> -
Sorry, forgot to add the shortcode for correct display.
Plain image
<img src="URL"></a>
Scaled-down image (W & H = number of pixels, of course in proprtion to the original)
<img src="URL" alt="" width="W" height="H"></a>
Scaled-down image that links to full-size original when clicked
<a href="URL"><img src="URL" alt="" width="W" height="H"></a>
Image that acts as a link to a webpage
<a href="URL_of_webpage"><img src="URL_of_image"></a> -
@investlogic – please don’t post the same question in multiple threads. It makes it difficult for the volunteers in the forums. Another answer over here https://en.forums.wordpress.com/topic/linking-a-widget-image?replies=5
-
@ Vivianpaige and other volunteers in the forums, my heartfelt aplogies. I thought I might be able to get the answers faster if I put that question up on two relevant threads. Point noted and shall not be repeated.
Thank you all for solving my problem. Now I am able to adjust the image Size.
- The topic ‘If I put an image in a text widget, what should I set the size to?’ is closed to new replies.