正如标题所说,我有一个多站点设置,外观是用子主题定制的。
主要站点:themainsite.com
辅助站点foo.com
当您查看foo的源代码时。com,您会看到一些URL引用主站点。例如:
<link rel="stylesheet"
href="http://www.themainsite.com/wp-content/themes/sometheme/css/some.css"
type="text/css" media="screen" />
我查看了wordpress文档get_stylesheet_directory_uri, 但找不到答案。是否可以删除对主站点的此类引用?UPDATE:所有CSS/JS引用都在header.php 父模板的,如下所示。我已经有一个标题了。php oin我的子主题,它覆盖父主题的标题。php。
<link rel="stylesheet"
href="<?php echo get_template_directory_uri() ?>/css/some.css"
type="text/css" media="screen" />