在符號連結 (symlinks) 環境中安裝 BuddyPress

在符號連結 (symlinks) 環境中安裝 BuddyPress

Codex Home → Getting Started → Frequently Asked Questions → Installing BuddyPress in a symlinked environment
Installing BuddyPress in a symlinked environment

If you use symbolic links (symlinks) for your WordPress plugin environment, you may need to do some additional configuration to ensure that BuddyPress assets are loaded correctly.
If you find that CSS and Javascript assets are not being loaded correctly (the tags are in the page source, but the paths are incorrect), try putting the following configuration settings into your wp-config.php file:

define( 'BP_PLUGIN_DIR', '/path/to/buddypress/' );
define( 'BP_PLUGIN_URL', 'http://example.com/wp-content/plugins/buddypress/' );

Replace /path/to/buddypress/ with your system path to the buddypress plugin directory (eg /var/www/html/wp-content/plugins/buddypress/). Replace http://example.com/wp-content/plugins/buddypress/ with the actual URL to your BuddyPress plugin directory.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註