WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Bunzer
    Member
    Posted 11 months 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?

    http://wordpress.org/extend/plugins/ultimate-tag-cloud-widget/

  2. Rickard Andersson
    Member
    Plugin Author

    Posted 11 months 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
    Member
    Posted 11 months ago #

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

  4. Bunzer
    Member
    Posted 9 months ago #

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

  5. Jon Scaife
    Member
    Posted 6 months 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
    Member
    Plugin Author

    Posted 5 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.