Multisite (subfolder set-up) child theme not linking properly
-
I have a multisite ‘website.com’ which has child site ‘childsite’ in a sub-folder set up, so the link to child site is website.com/childsite. All working perfectly on my custom ‘websitetheme’. Now I am trying to create a child theme for childsite ‘websitetheme-childtheme’ but I simply cannot get this to work.
What is happening is that the childsite’s name is inserted into some the links, like this: website.com/childsite/wp-content/themes/websitetheme-childtheme/library/css/style.css as if ‘childsite’ was a directory, which it obviously is not.
My .htaccess file:
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L]
My child-theme stylesheet:
/* Theme Name: Website theme Theme URI: https://website.com/ Description: Childsite theme for Website theme Author: Henriette Author URI: https://www.henriettemadeup.com Template: websitetheme Version: 1.0.0 */ @import url("../websitetheme/style.css"); /* =Theme customization starts here -------------------------------------------------------------- */
I am completely puzzled about this problem and desperately hope someone is able to help me figure this one out. Many thanks in advance.
- The topic ‘Multisite (subfolder set-up) child theme not linking properly’ is closed to new replies.