Using text widget–image doesn't render–alt text does–border does
-
I’ve used the text widget in the past with no problems whatsoever. But there is something going on with this new site I’m working on and the new theme I’m using. An image doesn’t render–but the alt text does. I even tried using inline CSS style=’visibility:visible; display:block; border:red solid 1px; width:50%’ and no joy.
I get a border around the alt text, 50% width of the sidebar. I get that with or without the visibility and/or display properties. I don’t find
-
Post your code here – using the code button above this box to begin and end the code.
And please post a link to your site. And let us know what theme you are using.
Sometimes you can “test” your code by pasting it in a draft post and previewing. Use the html tab for that. Somehow it seems easier to troubleshoot there. Then when you have it perfect, paste it into your widget.
-
The website is very preliminary: http://www.teasdale-gill.com/cms/
The middle widget is a “Jetpack image-widget” that I simply used to see if I could get the image to render in a widget–and as you can see, it does render in that widget.
The following code resides in a “text-widget” below the “photo widget”.
<h1> test</h1><p align="right">Yikes!</p><img scr="http://www.teasdale-gill.com/cms/wp-content/uploads/2016/08/trucks-tn-168.jpg" alt="help" style="visibility:visible; display:block; border:red solid 1px; width:50%" />Looking at the text-widget, you can see that the h1 and p both work, and the border and width properties of the image are parsed and rendered, but the alt property replaces the image (as it should when an image can’t be rendered). But why doesn’t the image render?
I’m having other issues with this theme and so I may switch–even though I like much of it.
Thanks,
Stephen -
I played with it a while on my WordPress.com site but could not get it to pull in the image even in a post.
Unfortunately this is a support forum for sites hosted here at WordPress.com. We use a different version of WordPress. See the difference at https://en.support.wordpress.com/com-vs-org/.
For your version of WordPress, the support forum is at
https://wordpress.org/support/They have a section on CSS and themes.
You might also consider checking with your theme developer for help.
- The topic ‘Using text widget–image doesn't render–alt text does–border does’ is closed to new replies.