Wordpress删除不正确

时间:2014-10-25 12:59:24

标签: php wordpress

我已将我的wordpress网站从localhost移至网站主办。

我的一个插件使用自定义图片,现在没有显示。 图片的方式,插件告诉http://onstars.ru/onstars/wp-content/plugins/add-to-any/wp-content/themes/sparkling/images/vk.png

我需要的方式是http://onstars.ru/wp-content/plugins/add-to-any/wp-content/themes/sparkling/images/vk.png(没有onstars,它在本地主机上)

如何告诉插件更改此内容?

插件文件中关于它的唯一代码如下:

//自定义图标或打包图标的目录

if ( isset( $options['custom_icons'] ) && $options['custom_icons'] == 'url' && isset( $options['custom_icons_url'] ) ) {
    // Custom icons expected at a specified URL, i.e. //example.com/blog/uploads/addtoany/icons/custom/
    $icons_dir = $options['custom_icons_url'];
    $custom_icons = true;
} else {
    // Packaged 16px icons
    $icons_dir = $A2A_SHARE_SAVE_plugin_url_path . '/icons/';
}

2 个答案:

答案 0 :(得分:0)

您可能需要更新Wordpress wp-config.php配置文件中的路径信息,该文件位于Wordpress安装的根目录下。

有关详细信息,请参阅this guide,特别是第二章,其中moving folders部分。

答案 1 :(得分:-1)

如果没有其他可行的解决方案,您可以尝试:

str_replace('onstars/', '', $your_image_url)

就这个例子而言:

$icons_dir = str_replace('onstars/', '', $options['custom_icons_url']);
相关问题