我在2天前发布了这个问题。我想要做的是在同一数据库上运行两个主题不同的WordPress网站。我被告知无法完成, 我应该为每个复制并使用相同的数据库。
但是, 我想知道是否有什么方法可以根据所访问的URL更改主题,
像这样
if (URL == "one.site.com") {
LoadThemeOne();
}
else if (URL == "two.site.com") {
LoadThemeTwo();
}
感谢你的帮助, 谢谢。
#1
当然可以。实际上, 如果你使用Jonradio Multiple Themes插件, 则非常简单。
来源:
https://www.srcmini02.com/67084.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_36969.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57