Title: Import declaration
Last modified: December 22, 2021

---

# Import declaration

 *  Resolved [jbstate](https://wordpress.org/support/users/jimburkestate/)
 * (@jimburkestate)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/import-declaration/)
 * We use your plugin on several instances and it works great. We are now adding
   a new instance on WPVIP and they have a process that concatenates CSS files. 
   This process is running into an issue as described by them below. Because of 
   the issue the settings page for your plugin is very distorted. Is the change 
   listed below possible without impacting others or do we need to focus on the 
   custom code they provided to us?
 *     ```
       I have identified the issue. The import at the top of https://cdev2.sites.ca.gov/wp-content/plugins/disable-comments/assets/css/style.css is not being parsed by the VIP concatenation script properly, creating invalid css for everything that follows.
       Specifically, the concatenation script is not expecting the ; in the @import declaration, which leads to an incomplete line being left in the CSS, and invalidating everything that follows.
       If you go to https://cdev2.sites.ca.gov/wp-admin/network/settings.php?page=disable_comments_settings&concat_css=false, the page will render the way you expected with the parameter of concat_css as false. To exclude this style sheet from the concatenation, please add the following code near where you enqueue the style sheet and commit the changes.
       ```
   
 *     ```
       add_filter( 'css_do_concat', function( $do_concat, $handle ) {
           if ( 'disable-comments-style' === $handle ) {
               return false;
           }   
           return $do_concat;
       }, 10, 2);
       ```
   
 * More information here: [https://docs.wpvip.com/technical-references/vip-platform/file-concatenation-and-minification/](https://docs.wpvip.com/technical-references/vip-platform/file-concatenation-and-minification/)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fimport-declaration%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [Abid Hasan](https://wordpress.org/support/users/abidhasan112/)
 * (@abidhasan112)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/import-declaration/#post-15190021)
 * Hi [@jimburkestate](https://wordpress.org/support/users/jimburkestate/) ,
 * Thanks for reaching out to us.
    We will need to test and R&D deeply in different
   servers and environments before implementing this on our plugin. We will check
   and research this in the future don’t worry.
 * For now, I would recommend you to add their given custom code to your `functions.
   php` to get this done in your case.
 * Thank you!

Viewing 1 replies (of 1 total)

The topic ‘Import declaration’ is closed to new replies.

 * ![](https://ps.w.org/disable-comments/assets/icon-256x256.png?rev=2509854)
 * [Disable Comments - Remove Comments & Stop Spam [Multi-Site Support]](https://wordpress.org/plugins/disable-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/disable-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/disable-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/disable-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disable-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disable-comments/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 1 reply
 * 2 participants
 * Last reply from: [Abid Hasan](https://wordpress.org/support/users/abidhasan112/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/import-declaration/#post-15190021)
 * Status: resolved