[英]Drupal 7 multi site site specific theme is not working
I have created a multi site on Drupal 7. I have mapped it with two different domain namely tom.mydomain.com and jerry.mydomain.com. 我在Drupal 7上创建了一个多站点。我已将它映射到两个不同的域,即tom.mydomain.com和jerry.mydomain.com。
Accordingly I have created two separate database namely tomdb and jerrydb and created a respective directory (folders) under the sites directory. 因此,我创建了两个单独的数据库,即tomdb和jerrydb,并在sites目录下创建了相应的目录(文件夹)。
My Current folder structures are mentioned below 我的当前文件夹结构在下面提到
drupal/sites/all drupal/sites/default drupal/sites/tom.mydomain.com drupal/sites/jerry.mydomain.com drupal /站点/所有drupal /站点/默认drupal / sites / tom.mydomain.com drupal /站点/jerry.mydomain.com
I have changed the database connection details in the settings.php under the specific folders. 我已在特定文件夹下的settings.php中更改了数据库连接详细信息。
Everything works fine till now. 到目前为止一切正常。
However, I wanted to use site specific theme and logo for both domain. 但是,我想对两个域都使用特定于站点的主题和徽标。 So I created a theme folders under particular directory.
因此,我在特定目录下创建了一个主题文件夹。 But drupal is not considering the correct theme specific to that particular site.
但是drupal没有考虑特定于特定站点的正确主题。 It is everywhere still using the theme from site/all folders.
它到处仍在使用站点/所有文件夹中的主题。
Would you please suggest why it is not using theme i have created for particular domain? 您能否建议为什么不使用我为特定域创建的主题?
Thanks in advance. 提前致谢。
After you add a multi-site theme under the specific site's directory, for example, drupal/sites/tom.mydomain.com/themes/tom_theme
, you need to set that theme as the default theme for your particular site. 在特定站点的目录下添加多站点主题(例如
drupal/sites/tom.mydomain.com/themes/tom_theme
,您需要将该主题设置为特定站点的默认主题。
This is done in the Admin area under Appearance. 这是在“外观”下的“管理”区域中完成的。 See detailed instructions here http://www.inmotionhosting.com/support/edu/drupal-7/customize-theme/change-default-theme
请参阅此处的详细说明http://www.inmotionhosting.com/support/edu/drupal-7/customize-theme/change-default-theme
Also just checking you have configured the sites/sites.php
file, which maps domains to the particular multisites. 同样,只需检查您是否已配置了
sites/sites.php
文件,该文件sites/sites.php
将域映射到特定的多站点。 See details here https://www.webwash.net/drupals-multi-site-aliasing-with-sites-php/ 在此处查看详细信息https://www.webwash.net/drupals-multi-site-aliasing-with-sites-php/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.