Title: problem override css &#8212; fix inside
Last modified: August 21, 2016

---

# problem override css — fix inside

 *  Resolved [anslume](https://wordpress.org/support/users/anslume/)
 * (@anslume)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/problem-override-css-fix-inside/)
 * 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
 * [http://wordpress.org/plugins/nextgen-galleryview2/](http://wordpress.org/plugins/nextgen-galleryview2/)

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

 * ![](https://s.w.org/plugins/geopattern-icon/nextgen-galleryview2_d5d6d8.svg)
 * [NextGEN-Galleryview](https://wordpress.org/plugins/nextgen-galleryview2/)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-galleryview2/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-galleryview2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-galleryview2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-galleryview2/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [anslume](https://wordpress.org/support/users/anslume/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/problem-override-css-fix-inside/)
 * Status: resolved