- Install and activate the plugin
- Go to Settings/Facebook sync (see error in FireBug)
css and js files aren’t included
css and js files should be included.
They are not included because the name of the plugin in folder and name of the plugin folder in the code are different.
The best practice is to use constant which contain the name of the plugin folder and use it in plugin code.
Input this code to into the begin of the main file of the plugin:
define('FBIM_PLUGIN_FOLDER', basename( dirname(__FILE__) ) );
Use this constant when you are including the files.
- The topic ‘Css and js files aren't included properly’ is closed to new replies.