WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Trouble With Text Widget

[Resolved] Trouble With Text Widget

  • marcbkk

    @marcbkk

    I am trying to add an RSS feed graphic to my blog in the sidebar using a text widget. I have used the following text:

    <img src=”http://MYIMAGE.com/blog/rss.jpg” alt=”RSS”>

    The only thing that shows up on the blog sidebar is the alt text itself which is simply RSS as per above. The image does not show up.

    In addition, when I click on the alt text that says RSS the link for it doesn’t work. Meaning it does not take me to the feed as it should. Instead I get a 404 error message form my blog saying the page I am trying to reach doesn’t exist. I think that is because the actual link that comes up when you click on it comes out as:

    http://MYURL.com/blog/“http:/MYURL.com/blog/feed/”

    So it seems like it is repeating the URL twice for some reason, the main blog url and then followed by the RSS url.

    Is there something wrong with my code above perhaps or the way I am entering in the text itself into the text widget?

    Cheers…

Viewing 15 replies - 1 through 15 (of 15 total)
  • marcbkk

    @marcbkk

    Sorry, I am reposting my message because in the above post the code I was trying to show did not appear correctly:

    I am trying to add an RSS feed graphic to my blog in the sidebar using a text widget. I have used the following text:

    <a href="http://MYSITE.com/blog/feed/"><img src="http://MYIMAGE.com/blog/rss.jpg" alt="RSS"></a>

    The only thing that shows up on the blog sidebar is the alt text itself which is simply RSS as per above. The image does not show up.

    In addition, when I click on the alt text that says RSS the link for it doesn’t work. Meaning it does not take me to the feed as it should. Instead I get a 404 error message form my blog saying the page I am trying to reach doesn’t exist. I think that is because the actual link that comes up when you click on it comes out as:

    http://MYURL.com/blog/"http:/MYURL.com/blog/feed/"

    So it seems like it is repeating the URL twice for some reason, the main blog url and then followed by the RSS url.

    Is there something wrong with my code above perhaps or the way I am entering in the text itself into the text widget?

    Cheers…

    JarretC

    @jarretc

    Is this on a live site that we could take a look at to see?

    marcbkk

    @marcbkk

    Thanks. I took the text widget off my site already because it wasn’t working right. So I was trying to figure out the right code or text for the widget first before putting it back up. If you have some idea for a different code syntax I would be happy to try it.

    JarretC

    @jarretc

    Have you visited just the image URL that you’re trying to insert to make sure it shows properly in a browser?

    marcbkk

    @marcbkk

    OK, I have put it back up now on the site so you can see it. Please go to http://www.marcschultz.com/blog

    The issue should appear at the very top of the sidebar above Archives. There you should see the RSS alt text only.

    marcbkk

    @marcbkk

    Yes thank you. I tested the image URL:

    http://www.marcschultz.com/blog/rss.jpg

    JarretC

    @jarretc

    It’s showing up just fine for me. Have you tried clearing your browser cache? The link also takes me to the blog feed without any URL issues.

    marcbkk

    @marcbkk

    Well, strange, but it seems to be working on this page now:

    The Beauty Of Panning And How To Do It Right

    Maybe it is a caching issue on some other pages where it is now showing up correctly. I am running the WP Super Cache plugin. SO perhaps that affects some pages when I try to release them.

    JarretC

    @jarretc

    Very possible 🙂

    marcbkk

    @marcbkk

    Thanks JarretC. I do think it is a caching issue. But it is not a browser cache issue I don’t think. It has to do with the WP Super Cache plugin.

    marcbkk

    @marcbkk

    Well, problem solved it seems. Would you mind to kindly click on the main blog index page, then a couple of my pages from the top navigation, and then finally a couple of random blog posts and please let me know if it is showing correctly on all pages for you please? Cheers..

    JarretC

    @jarretc

    Seems to be showing up on some pages but not single blog posts, have you cleared the cache in WP Super Cache yet?

    marcbkk

    @marcbkk

    Thanks. I deleted the cache. Seems OK now. Would you kindly try it one more time from your side if you have a moment? Cheers…

    JarretC

    @jarretc

    Showing up now on all URLs 🙂

    marcbkk

    @marcbkk

    Great. Thanks. That WP Super Cache seems to be a useful plugin, but sometimes I wonder if I have it configured correctly in the first place. The number of settings on that plugin are endless.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[Resolved] Trouble With Text Widget’ is closed to new replies.
Skip to toolbar