Tribulant Slideshow Gallery
[resolved] how stop importing @imoport Style Sheet in the middle of the body tag (6 posts)

  1. srmahmud2
    Posted 2 years ago #

    while trying my site in w3 validator its show and error that inside boydy there's styel style tag which contains the info such as " @import url('http://example.com/wp-content/plugins/slideshow-gallery/css/gallery-css.php?resizeimages=N&width=&height=&border=&background=%23FFFFFF&infobackground=%23000000&infocolor=%23FFFFFF&wrapperid=slideshow-wrapper&thumbwidth=100&thumbheight=75'); "


  2. Stefanp44
    Posted 2 years ago #


    Great plugin, easy and all !

    I have the exact same problem though : it's the one validation error that I cannot solve, and it makes me going nuts ;-

    I would be so grateful if anyone could tell us either how to stop calling the function right in the middle of <body>, or to stop calling it at all, since I could work with the regular css file (that would also be better regarding speed loading pages).

    Thanks a lot for your answer(s) !

  3. Stefanp44
    Posted 2 years ago #

    Okay, found it : in the "views" folder, then "default" folder, "gallery.php" file : you can edit it with any text editor. The line I was looking for was 157.

    <style type="text/css">
    @import url('<?php echo $this -> get_css_url($cssattr); ?>');

  4. srmahmud2
    Posted 2 years ago #

    Heyy! thanks for the update.

    I had almost forgotten I had the same problem before. Well your finding may help others. Can't remember; I think I had used another plugin.


  5. srmahmud2
    Posted 2 years ago #


  6. Tribulant Software
    Plugin Author

    Posted 2 years ago #

    Thank you for your posts guys.

    Yes, this stylesheet is loaded inside slideshow-gallery/views/default/gallery.php

    The reason why it loads inside the BODY and in the way it does is because it dynamically generates the CSS based on possible parameters with the shortcodes and/or hardcoding.

    It is best to leave it as is but feel free to modify the plugin if needed.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Tribulant Slideshow Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic