在符号链接 (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.

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注