CSS Not Loading After Transfer

User
this is not inclding when we transfer wordpress bakery builder site to other domain
Assistant
When transferring a WordPress site (especially one using WPBakery or other page builders like The7 theme) to another domain, some theme-generated dynamic files like `custom.css` might not load properly due to hardcoded URLs or missing regenerated files.

Here’s how you can fix the issue:

### ✅ 1. **Regenerate Theme CSS Files**
Many themes like The7 generate custom CSS files and store them in `wp-content/uploads/the7-css/`.

After migrating:
– Go to **Theme Options > Advanced > System Status** (or similar in The7)
– Look for an option like **"Regenerate CSS"** or **"Clear Dynamic CSS Cache"** and run it.

### ✅ 2. **Clear WPBakery & Theme Cache**
WPBakery and The7 cache styles:
– Go to **WPBakery > General Settings** and clear any available cache.
– If the theme has a cache option (like The7), clear or regenerate CSS/JS from theme settings.

### ✅ 3. **Check for Hardcoded URLs**
Sometimes `custom.css` might still use the old domain:
– Search your database for any mention of the old domain:

SELECT * FROM wp_options WHERE option_value LIKE '%old-domain.com%';

– Also check `wp_postmeta` and `wp_the7_theme_mods` (if present).

You can use a plugin like **Better Search Replace** to replace the old domain with the new one.

### ✅ 4. **Ensure File Permissions Are Correct**
Make sure the `/wp-content/uploads/the7-css/` folder:
– Exists
– Is writable by WordPress (`755` or `775` folder permission)
– Contains `custom.css`

If not, the theme might fail to generate the file.

### ✅ 5. **Check for CDN or Caching Conflicts**
If you're using a caching plugin or CDN:
– Purge all caches
– Disable CDN temporarily to see if it’s preventing the file from being fetched

Would you like help inspecting your current site's setup or running a find-and-replace on your database? Let me know your current and previous domain names, and I can help with specific SQL or plugin instructions.

Leave a Comment

Your email address will not be published. Required fields are marked *