-
AuthorPosts
-
October 5, 2018 at 5:36 pm #1018320
Hi,
I moved a WordPress site from https://new.p4ne.org to https://p4ne.org. The move went fine, but I noticed that if I rename or delete the sub-domain directory the site looses its styling. This seems to be because the CSS is still being called from new.p4ne.org (as you can see if you inspect any element on the site at https://p4ne.org.
I ran the Velevet Blues Update URL updater a number of times, but it doesn’t seem to have worked. I wonder whether I need to somehow rebuild the CSS for the site on the new domain? Or maybe it’s a question of changing the permissions (temporarily?) on some folders before rerunning the URL updater?
Thanks,
EoghanOctober 6, 2018 at 6:56 am #1018429Hey Eoghan,
Thanks for the login details. Does the new directory have the /uploads/dynamic_avia/ folder? If not then just changing something in the theme options and saving should generate that folder, I’m not sure if that will fix your problem but you can try it at least.
Best regards,
RikardOctober 6, 2018 at 11:07 am #1018471Thanks for the suggestion Rikard.
The dynamic_avia folder was in the new directory already. But just to test your theory, I deleted it, then changed something in the theme options and saw that it was indeed re-generated. However, loading the site in a fresh browser shows that it’s still loading CSS from the sub-domain (new.p4ne.org).
Note that it’s using an Enfold child theme (titled P4NE).
Eoghan
October 8, 2018 at 10:18 am #1018893Hi Eoghan,
Can you try to flush out the cache if you’re using a caching plugin?
I checked your site and it’s still pointing on your subdomain.Best regards,
NikkoOctober 8, 2018 at 11:15 am #1018919Hi Nikko,
I’m not using any caching plugin. When you say the site is “still pointing on your subdomain”, do you mean that you’re seeing the site as loading from new.p4ne.org? How do you see that? I can only see that the CSS is coming from that domain.
If I sign into the dashboard at the root domain and edit something, the edit appears on the site too.
Eoghan
October 8, 2018 at 6:04 pm #1019069Hi Eoghan,
Thanks for giving admin access.
I’m not really sure why it’s still appearing, also in Enfold > Performance, enabling JS and CSS file merging and compression doesn’t work.
Can you try to search and replace it in the database? if you have cpanel access you should be able to access the database also.
Also try to delete Enfold theme entirely then upload version 4.4.1 again, maybe this will help fix the issue.Best regards,
NikkoOctober 9, 2018 at 9:31 pm #1019670Hi Nikko,
I fixed the problem. For some reason the WordPress Options table in the database still had the sub-domain listed as siteurl and home, even though I had changed those via the WordPress dashboard. The strange thing is that Find and Replace operations on the database also failed to find them – I only found them when poking about manually in the database with PHPmyadmin.
Thanks for pointing me in the right direction.
Eoghan
October 10, 2018 at 6:22 am #1019791Hi Eoghan,
Great, glad you found the problem. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardOctober 10, 2018 at 10:36 am #1019865All good – you can close this one!
October 10, 2018 at 12:32 pm #1019918 -
AuthorPosts
- The topic ‘CSS problems after migration from sub-domain to root’ is closed to new replies.