Title: woocommerce admin.css not loading
Last modified: August 29, 2022

---

# woocommerce admin.css not loading

 *  Resolved [hotcookie](https://wordpress.org/support/users/hotcookie/)
 * (@hotcookie)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/woocommerce-admin-css-not-loading/)
 * I’m developing a plugin for deliveries. The page is located under woocommerce
   admin. I’m using form-row, form-row-wide, etc from the woocommerce admin.css 
   file. It was working. I migrated the database from the active site. Seems after
   that wordpress is no longer loading the woocommerce plugin admin.css. Befuddled
   on what happened. Thoughts.
 * I’m on the currrent version of wordpress and woocommerce.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwoocommerce-admin-css-not-loading%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [Kaushik S. a11n](https://wordpress.org/support/users/kaushiksomaiya/)
 * (@kaushiksomaiya)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/woocommerce-admin-css-not-loading/#post-15958199)
 * Hi there!
 * Thank you for contacting us.
 * I understand for the custom plugin you are developing, WooCommerce admin.css 
   file is not getting loaded.
 * I am not too sure about this, but you can try loading the CSS manually on your
   custom admin page:
 * `wp_enqueue_style( 'woocommerce_admin_styles', WC()->plugin_url() . '/assets/
   css/admin.css');`
 * I can also recommend [the WooCommerce Developer Resources Portal](https://developer.woocommerce.com/)
   for resources on developing for WooCommerce.
 * You can also visit the [WooCommerce Facebook group](https://www.facebook.com/groups/advanced.woocommerce/)
   or the `#developers` channel of the [WooCommerce Community Slack](https://woocommerce.com/community-slack/).
   We’re lucky to have a great community of open-source developers for WooCommerce,
   and many of our developers hang out there, as well.
 *  Thread Starter [hotcookie](https://wordpress.org/support/users/hotcookie/)
 * (@hotcookie)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/woocommerce-admin-css-not-loading/#post-15960029)
 * Thanks for responding. Forcing it to load in the php file works.
 * The question is why its not being loaded automatically? It was being loaded automatically
   and suddenly stopped. What caused it to stop being loaded? Is there any reason
   admin.css wouldn’t be loaded on a page under
    “wp-admin/admin.php?page=deliveries”?
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/woocommerce-admin-css-not-loading/#post-15961420)
 * > Forcing it to load in the php file works.
 * Glad to hear it. Thanks for letting us know.
 * > What caused it to stop being loaded?
 * The answer to this seems to be in your first message and I’m quoting it here:
 * > It was working. I migrated the database from the active site. Seems after that
   > wordpress is no longer loading the woocommerce plugin admin.css
 * The channels for developers recommended above by Kaushik might be the best place
   to get more insights on this issue you’re facing.
 * Thanks.
 *  Thread Starter [hotcookie](https://wordpress.org/support/users/hotcookie/)
 * (@hotcookie)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/woocommerce-admin-css-not-loading/#post-15967457)
 * Discovered further details on what was causing.
 * I was adding new code. That caused PHP to find syntax errors and stop processing.
   For some reason php retained some state information after halting because of 
   the syntax errors that caused it to not load the css on subsequent retries.
 * When I restarted php on my mac, the problem went away. When I restarted php on
   the forge server, the problem also went away.
 * I’m not a expert on the php parser. Seems like an interaction problem with wordpresses
   implementation of loading css and the parser.
 *  [MayKato](https://wordpress.org/support/users/maykato/)
 * (@maykato)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/woocommerce-admin-css-not-loading/#post-15968154)
 * Hi [@hotcookie](https://wordpress.org/support/users/hotcookie/)
 * Thank you for sharing this!
 * > I’m not a expert on the php parser. Seems like an interaction problem with 
   > wordpresses implementation of loading css and the parser.
 * I’d try asking this on the developer’s channel of the WooCommerce Community Slack.
   You’ll have a better chance of finding open source developers who can clarify
   this.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘woocommerce admin.css not loading’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [MayKato](https://wordpress.org/support/users/maykato/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/woocommerce-admin-css-not-loading/#post-15968154)
 * Status: resolved