[resolved] Invalid Markup? (4 posts)

  1. gstricklind
    Posted 2 years 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.



  2. Stefan Boonstra
    Plugin Author

    Posted 2 years 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
    Posted 2 years 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
    Plugin Author

    Posted 2 years 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Slideshow
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.