WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Trouble With Text Widget (16 posts)

  1. marcbkk
    Member
    Posted 9 months ago #

    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...

  2. marcbkk
    Member
    Posted 9 months ago #

    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...

  3. JarretC
    Member
    Posted 9 months ago #

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

  4. marcbkk
    Member
    Posted 9 months ago #

    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.

  5. JarretC
    Member
    Posted 9 months ago #

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

  6. marcbkk
    Member
    Posted 9 months ago #

    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.

  7. marcbkk
    Member
    Posted 9 months ago #

    Yes thank you. I tested the image URL:

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

  8. JarretC
    Member
    Posted 9 months ago #

    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.

  9. marcbkk
    Member
    Posted 9 months ago #

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

    http://marcschultz.com/blog/beauty-panning/

    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.

  10. JarretC
    Member
    Posted 9 months ago #

    Very possible :)

  11. marcbkk
    Member
    Posted 9 months ago #

    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.

  12. marcbkk
    Member
    Posted 9 months ago #

    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..

  13. JarretC
    Member
    Posted 9 months ago #

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

  14. marcbkk
    Member
    Posted 9 months ago #

    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...

  15. JarretC
    Member
    Posted 9 months ago #

    Showing up now on all URLs :)

  16. marcbkk
    Member
    Posted 9 months ago #

    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.

Reply

You must log in to post.

About this Topic