Title: Validator W3C and css declaration
Last modified: August 22, 2016

---

# Validator W3C and css declaration

 *  Resolved [rainroom](https://wordpress.org/support/users/rainroom/)
 * (@rainroom)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/validator-w3c-and-css-declaration/)
 * Hi and thank your for this perfect lightbox plugin (the best i’ve found so far).
 * I was having some issue with the validator. Apparently and even if head related
   hooks are used in the plugin, the css call was curiously made in the footer returning
   me an error.
 * To fix I’ve found this solution :
    In the file wp-lightbox-bank.php line 212 
   replace
 *     ```
       add_action("wp_head", "lightbox_front_end_panel_css_calls");
       ```
   
 * by
 *     ```
       add_action("wp_enqueue_scripts", "lightbox_front_end_panel_css_calls");
       ```
   
 * works flawly for me so far! Hope it can helps people in the same situation. If
   there is any limitations with this mod please let me know!
 * [https://wordpress.org/plugins/wp-lightbox-bank/](https://wordpress.org/plugins/wp-lightbox-bank/)

The topic ‘Validator W3C and css declaration’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-lightbox-bank_a67c15.svg)
 * [WordPress Lightbox Plugin by Lightbox Bank](https://wordpress.org/plugins/wp-lightbox-bank/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-lightbox-bank/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-lightbox-bank/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-lightbox-bank/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-lightbox-bank/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-lightbox-bank/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [rainroom](https://wordpress.org/support/users/rainroom/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/validator-w3c-and-css-declaration/)
 * Status: resolved