Greetings,
Following the update to version 6.3, I’m having trouble migrating the site to my local machine. The issue is that the CSS classes on the elements are different/missing.
I used to pull my WordPress files and SQL export to my local machine to work on the site. I would update the hostname in wp-settings.php and in the database SQL file. Worked just fine.
I noticed today that the site doesn’t display correctly on the local machine. If I compare the same elements, the one on localhost has less CSS classes. An example is the Cover block with Heading text on it… The text shows up below the cover image, and the cover image displays it’s full size instead of the compact size.
Here’s some items to note and things I’ve already tried:
\- Dev tools doesn’t show any errors or failed requests (no broken links seemingly).
\- No errors in Apache log.
\- The site looks normal as expected inside the page editor.
\- Saved permalinks again.
\- Reinstalled the 6.3 update.
\- Edited the page and template again and re-saved.
\- Tested with 2 separate websites.
Just to clarify, the site displays correctly online, but as soon as I download to the local machine it doesn’t display properly.
In the screenshots you can see the difference in the .css classes, and the bulleted vs unbulleted list. Again, no broken links in the dev tools.
Any ideas what to check next?
​
[ad_2]
You mean you update the host name in wp-config.php right? Or you can do it in the wp_options table, siteurl and home cells.
And when you do the domain name changes, don’t touch the sql file – performing a find/replace on the sql breaks serialised strings. Use a plugin like Better Search Replace or use WP CLI search-replace command.
Aside from that though, there is no reason anything would change, just because of the WP version bump.