WordPress.org

Ready to get started?Download WordPress

Forums

Slideshow
[resolved] Invalid Markup? (4 posts)

  1. gstricklind
    Member
    Posted 10 months ago #

    Validating for HTML5 and I'm getting: Element link is missing required attribute property for the following lines:

    <link rel='stylesheet' id='slideshow-jquery-image-gallery-stylesheet_functional-css' href='[website]/wp-content/plugins/slideshow-jquery-image-gallery/style/SlideshowPlugin/functional.css?ver=2.2.19' type='text/css' media='all' />
    <link rel='stylesheet' id='slideshow-jquery-image-gallery-ajax-stylesheet_style-light-css' href='[website]/wp-admin/admin-ajax.php?action=slideshow_jquery_image_gallery_load_stylesheet&style=style-light&ver=2.2.19' type='text/css' media='all' />

    I believe these need to be called in the head of the document.

    Cheers

    http://wordpress.org/plugins/slideshow-jquery-image-gallery/

  2. Stefan Boonstra
    Member
    Plugin Author

    Posted 10 months ago #

    You're right.

    The stylesheets are loaded in the footer to make sure they're not loaded when they're not needed by the website. However, there's a setting to change this behaviour.

    In the WordPress dashboard menu go to "Slideshows", then click "General Settings". The "General Settings" page will apear on which you'll see the "Stylesheet location" setting. Set this setting to "Head" to load the stylesheets in the head of the document.

  3. gstricklind
    Member
    Posted 10 months ago #

    Thanks. I thought I remembered seeing this somewhere but couldn't remember. Have you though about creating a warning of sorts for that setting?

    Btw, this plugin has grown nicely. Great job.

  4. Stefan Boonstra
    Member
    Plugin Author

    Posted 10 months ago #

    Thanks for the compliment!

    I haven't. Most people don't seem to mind the compromise in HTML markup when it means their pages will have a better performance when loading.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.