• Resolved anslume

    (@anslume)


    Hello,

    thanks for your great plugin.. I was working on it and wanted to implement my own css and php!
    However there is a problem when you override the css and put it in your theme folder.. Your plugin detects that you have another css file however it’s loading the absoluth path of it on the server leading to a 404 error with the new css file.

    formercode in nggGalleryview.php

    if ( file_exists (get_stylesheet_directory(). "/nggallery/css/galleryview.css")) {
    					$galleryviewcss = get_stylesheet_directory(). "/nggallery/css/galleryview.css";
    				}

    Here is the solution.

    if ( file_exists (get_stylesheet_directory(). "/nggallery/css/galleryview.css")) {
    					$galleryviewcss = get_stylesheet_directory_uri(). "/nggallery/css/galleryview.css";
    				}

    The problem was using get_stylesheet_directory() for the css which is returning the absoluth path of the file on the server leading to a 404 error.

    maybe you can fix it in your next update ?

    Thanks anayway

    Anselme

    https://www.ads-software.com/plugins/nextgen-galleryview2/

  • The topic ‘problem override css — fix inside’ is closed to new replies.