how to access folder of css files in magento

how to access folder of css files in magento

October 13, 2026 · Illustrated author avatarBy Stefan Bogdanescu
how to access folder of css files in magento

Accessing CSS Folders in Magento: A Comprehensive Guide for Beginners

If you’re new to Magento and struggling to load your own CSS files into your storefront, you’ve come to the right place! In this guide, we’ll walk you through the process step-by-step, ensuring that even as a beginner, you can successfully manage your custom CSS in Magento.

Understanding the Magento Directory Structure

Before diving into the details, let’s quickly understand the basic directory structure of a typical Magento installation. You might have heard about the var folder; it is indeed an essential part of any running Magento setup.

The var directory typically contains cache data, log files, and more importantly for our case - the skin folder. The skin folder is where you can store your custom themes’ CSS files.

Accessing the Skin Folder

Now, let’s talk about where exactly this var folder resides in a standard Magento installation on your local machine or server:

  • Local Installation: If you have Magento installed locally on your computer (e.g., for development purposes), you can usually find it under the root directory of your project. For example:

    /var/www/your_magento_project
    

    Inside this main folder, look for the var subdirectory.

  • Remote Installation: If you’re accessing a Magento instance hosted on a remote server (like in your company’s case), the path will depend on where your hosting provider has installed it. You’ll need to connect via SFTP or SSH and navigate to the root directory of your Magento project.

Creating Your Custom Theme Folder

Once you’ve located the var folder, look for or create a subdirectory named skin. Inside this skin folder, you should have two main folders: frontend and adminhtml.

For frontend themes (which is what we’re interested in here), navigate to:

var/skin/frontend

You’ll need to create your own folder within the frontend directory. Let’s call it default_magento_new_theme:

var/skin/frontend/default/magento_new_theme

Organizing Your Custom CSS Files

Inside the new theme folder, you should see a subdirectory named css. If not, go ahead and create one:

var/skin/frontend/default/magento_new_theme/css

This is where you’ll store all your custom CSS files. You can organize them into further subfolders if needed for better management.

Linking Your Custom CSS in the Theme

Finally, to use these custom CSS files in your Magento theme, you need to link them correctly from your theme configuration. This process involves editing XML files and requires some familiarity with Magento’s theme system.

For a detailed guide on this step, I recommend checking out our comprehensive article at laravelcompany.com/blog/magento-custom-css. It walks you through the entire process of creating custom CSS files and linking them to your Magento theme effectively.

Conclusion

In summary, to access the CSS folder in Magento:

  1. Locate the var directory in your Magento installation.
  2. Navigate to the skin/frontend subdirectory.
  3. Create a new folder for your custom theme (e.g., default_magento_new_theme).
  4. Inside this theme folder, create a css subdirectory and store your CSS files there.

Remember that linking these CSS files to your active Magento theme is an essential final step. For detailed instructions on this linkage process, feel free to explore the comprehensive guide at laravelcompany.com/blog/magento-custom-css.

Happy theming!

Cache Themes Import/Export

Our network