Support » Plugin: WP-Facebook-Importer » Css and js files aren't included properly

  • Reproduction steps:

    • Install and activate the plugin
    • Go to Settings/Facebook sync (see error in FireBug)

    Actual result
    css and js files aren’t included

    Expected result
    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.

    http://wordpress.org/plugins/wp-facebook-importer/

  • The topic ‘Css and js files aren't included properly’ is closed to new replies.