Plugin Enqueue Path
-
On line 269 of popup-with-fancybox.php
function Popupwfb_add_javascript_files() should read:
function Popupwfb_add_javascript_files() { if (!is_admin()) { wp_enqueue_script('jquery'); wp_enqueue_style( 'jquery.fancybox', plugins_url('popup-with-fancybox/inc/jquery.fancybox.css')); wp_enqueue_script('jquery.fancybox', plugins_url('popup-with-fancybox/inc/jquery.fancybox.js')); } }
Hardcoding plugin urls is bad ??
- The topic ‘Plugin Enqueue Path’ is closed to new replies.