Home › Forums › WordPress Plugins › Hide My WP › Multisite child theme theme url not replaced.
- This topic has 5 replies, 2 voices, and was last updated 9 years, 6 months ago by
Suman M..
-
AuthorPosts
-
December 12, 2015 at 2:35 am #6506
I have multisite, and use child theme.
After I setup HMWP, the css files are all missing. I check the source, all css url are changed as previous version, such as http://domain.com/skin/theme_name/main.css
But I checked the rewrite rules in configure, it suppose change to : http://domain.com/skin/main.css, and for parent theme url ,http://domain.com/skin_main/main.css. But HMWY didn’t change those url like what is setting in rewrite rules. So I added those two in replace text tab, now it is working.
Please check if it is a bug and fix asap. Thank you.In the rewrites rules, top two lines are:
rewrite ^/theme_name/(.*) /wp-content/themes/theme_name/$1?FtuXL_hide_my_wp=1234 last;
rewrite ^/template_main/(.*) /wp-content/themes/theme_name/$1 last;In my source:
<link rel=’stylesheet’ id=’child-style-css’ href=’http://mydomain.com/template/theme_name_child/main.css’ type=’text/css’ media=’all’ />
And it shows the css is missing.-
This topic was modified 9 years, 7 months ago by
jingdai.
December 13, 2015 at 12:52 pm #6523Hi, for performance reason HMWP does not hide theme names in WPMU. But you can easily rename themes in wp-content/themes/ directory (e.g. wp-content/themes/custom_name/)
December 13, 2015 at 9:58 pm #6535Hi, thank you for your reply. But you might not get my questions. In the rewrite rules which was generated by HMWP, my theme name was removed, that’s why all my css is missing. I don’t want theme name be removed.
the questioning rewrite rule is as below:(skin is replace /wp-content/themes/)
rewrite ^/skin_main/(.*) /wp-content/themes/mytemplate/$1 last;I checked the source, actually it did as designed for multisite and theme with child theme.
So the problem is either the rewrite rule wrong or my themes name is not changed as the rewrite rule wanted. In my header it is like:
<link rel=’stylesheet’ id=’mobile-css’ href=’http://test.moreweb.space/skin/mytemplate/css/mobile.css’ type=’text/css’ media=’all’ />And when I add a replace in the replace tool and make it like:
<link rel=’stylesheet’ id=’mobile-css’ href=’http://test.moreweb.space/skin_main/css/mobile.css’ type=’text/css’ media=’all’ />
then the link works.I do not want to add the replace and make my template name change, the generated rewrite rule make me to do that. Please help.
December 15, 2015 at 9:21 am #6564Please let us know your website’s wp-admin login details (as private reply), so that we can have a look at the issue.
January 9, 2016 at 5:03 am #7177Hi, after update to latest version this issue is still there and also I find all images are not shown because HMWP change their URL to relative url(such as: file/sites/2/image.jpg, should be full url: http://mydomain.com/file/sites/2/image.jpg). So images only work on front page. There must be something wrong with multisite settings with child theme activated. I have another single site which is working fine.
January 9, 2016 at 4:21 pm #7190Hi, can you please let us know your website’s wp-admin login details (as private reply), so that we can have a look at the issue and fix it for you.
-
This topic was modified 9 years, 7 months ago by
-
AuthorPosts
You must be logged in to reply to this topic.