# Wordpress export comments out css rules

**URL:** <https://forum.pinegrow.com/t/wordpress-export-comments-out-css-rules/8167>\
**Category:** WordPress\
**Created:** [June 21, 2023, 5:26pm UTC](https://forum.pinegrow.com/t/wordpress-export-comments-out-css-rules/8167 "2023-06-21T17:26:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kissgyula](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kissgyula/32/770_2.png) [@kissgyula](https://forum.pinegrow.com/u/kissgyula)\
**Post date:** [June 21, 2023, 5:26pm UTC](https://forum.pinegrow.com/t/wordpress-export-comments-out-css-rules/8167/1 "2023-06-21T17:26:32Z")

</div>

When I export the wordpress theme, not just a save but a full export, the contents of the style.css file will be commented out. It’s very annoying and for hours I didn’t understand why the template was falling apart. What could be causing this behavior?

---

<div class="post-metadata">

**Author:** ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Post date:** [June 21, 2023, 5:40pm UTC](https://forum.pinegrow.com/t/wordpress-export-comments-out-css-rules/8167/2 "2023-06-21T17:40:38Z")

</div>

Which style.css file are you referring to? Pinegrow controls the one at the root of the project directory, where the theme/block headers are stored. Any custom CSS should be included in the /css/style.css directory.

Similarly, don’t try to directly edit the functions.php file with your own custom code. Make sure you edit /inc/custom.php instead.

---

<div class="post-metadata">

**Author:** ![kissgyula](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kissgyula/32/770_2.png) [@kissgyula](https://forum.pinegrow.com/u/kissgyula)\
**Post date:** [June 21, 2023, 6:44pm UTC](https://forum.pinegrow.com/t/wordpress-export-comments-out-css-rules/8167/3 "2023-06-21T18:44:51Z")

</div>

It looks like I missed a few updates since I didn’t use pinegrow very often.

The file /css/style.css does not exist in my project, should I just create it in the stylesheet manager and copy the custom rules?

---

<div class="post-metadata">

**Author:** ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Post date:** [June 21, 2023, 7:50pm UTC](https://forum.pinegrow.com/t/wordpress-export-comments-out-css-rules/8167/4 "2023-06-21T19:50:01Z")

</div>

Probably not, since it sounds like something else might be going on and causing issues. If it’s not being enqueued by the theme then manually creating it won’t have any effect.

Maybe check the Stylesheets manager (file \> manage stylesheets) to see if you have it defined there, and if not, add it that way.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/4/46d354ac574dc6f459017a6803c49ffb02ce5f29.png)

---

<div class="post-metadata">

**Author:** ![kissgyula](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kissgyula/32/770_2.png) [@kissgyula](https://forum.pinegrow.com/u/kissgyula)\
**Post date:** [June 23, 2023, 2:37pm UTC](https://forum.pinegrow.com/t/wordpress-export-comments-out-css-rules/8167/5 "2023-06-23T14:37:25Z")

</div>

Should this /css/style.css file be created automatically when I create a new project or activate the wordpress theme?

If I create a new empty bootstrap project, certainly not, style.css will only be in the main directory.

If I create a new css rule, it is also placed in style.css of the main directory by default.

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [June 25, 2023, 6:05am UTC](https://forum.pinegrow.com/t/wordpress-export-comments-out-css-rules/8167/6 "2023-06-25T06:05:13Z")

</div>

@kissgyula style.css in the main directory is created because it contains information about the theme. That’s a WordPress convention.
