【发布时间】:2014-03-11 12:18:28
【问题描述】:
我在我的主域www.abcdef.com 的子域下创建了演示 wordpress 站点。我安装了 NextGEN 画廊插件来显示画廊。一切正常,我考虑将站点移至它自己的域。更改了站点 URL 和其他内容,并将整个文件移动到新位置。现在一切正常,除了fancybox模块,它应该在单击时在弹出框中打开图片!
经过调查,我发现 Fancybox 的样式表路径仍然指向我的旧子域!但是所有其他 stlyesheets 和 javascript 文件都包含在正确的路径中(即,它相对于新域显示)。只有这个 fancybox 的样式表显示错误。
尝试手动检查数据库的wp-options 表中是否有任何提及我的旧子域的条目,但没有找到任何内容。通过执行以下查询进行双重检查:
SELECT * FROM `wp_options` WHERE `option_value` LIKE '%mysite.abcdef.com%'
什么都没找到!为了确保它不是缓存问题,我也尝试删除缓存。也没有用!
然后尝试手动检查属于该插件的每个 PHP 页面。但我在路径中找不到任何提及我的旧子域的地方!
我现在真的很困惑!目前显示如下:
<link rel='stylesheet' id='fancybox-0-css' href='http://mysite.abcdef.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/lightbox/static/fancybox/jquery.fancybox-1.3.4.css?ver=3.6' type='text/css' media='all' />
<link rel='stylesheet' id='nextgen_basic_album_style-css' href='http://mynewdomain.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_album/static/nextgen_basic_album.css?ver=3.6' type='text/css' media='all' />
<!-- ........... rest of the things shown with href value starting with "http://mynewdomain.com" ........... -->
有什么想法吗?提前致谢。
【问题讨论】:
-
问题解决了吗?我有同样的问题。
标签: css wordpress fancybox nextgen-gallery