WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. srmahmud2
    Member
    Posted 7 months 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'); "

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

  2. Stefanp44
    Member
    Posted 6 months ago #

    Hi,

    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
    Member
    Posted 6 months 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); ?>');
    </style>

  4. srmahmud2
    Member
    Posted 6 months 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.

    thanks

  5. srmahmud2
    Member
    Posted 6 months ago #

    .

  6. Tribulant Software
    Member
    Plugin Author

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

Reply

You must log in to post.

About this Plugin

About this Topic