Ultimate Tag Cloud Widget
[resolved] XHTML validation failing (6 posts)

  1. Bunzer
    Posted 3 years ago #

    Just implemented your widget, and it works very nicely indeed. Thanks.

    One minor problem though, it breaks website validation. This appears to be due to the use of the style tag in the body. Is there any way around this?


  2. Rickard Andersson
    Plugin Author

    Posted 3 years ago #

    I've actually researched a solution to this problem but I haven't yet found a solution that works with the shortcode which can appear in the middle of the page when <head> has already been rendered.

    The only way I've found so far is to buffer the output and inject the style tag into <head> but I don't think it's worth the complexity and could possibly decrease the page load performance / user experience.

    If you have any suggestions on how to solve this I'm all ears:)

  3. Bunzer
    Posted 3 years ago #

    It's a bit above my level, I'm afraid. But the plug-in works great anyway. Cheers.

  4. Bunzer
    Posted 3 years ago #

    Uninstalled. I changed theme and removed a lot of tags.

  5. Jon Scaife
    Posted 2 years ago #

    Sorry to re-open this. I understand the issue, but failing validation bugs me. At the minimum could you provide an option somewhere. I found commenting out lines 331-333 in Render.php enabled validation (by removing the style code) without changing the appearance of the widget. It would be nice to have this as an option

    As a possible proper solution - couldn't you always add the styles in the head and then use jquery to modify them later if needed?

  6. Rickard Andersson
    Plugin Author

    Posted 2 years ago #

    I'm not really in favor of the jQuery solution since that would break the appearance for non javascript clients.

    However when I first researched this i tried to find a solution that would work for all the cases where the tag cloud could be used (widget, short code, php code). I suppose it would be possible to only output inline styles whenever absolutely necessary.

    I don't really feel this is a prioritized issue right now but I will add it to the github list of issues.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ultimate Tag Cloud Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.