Thu. Jun 5th, 2025

1. Magento. How to add a custom CSS file

1 min read

In order to add a custom CSS file, you should perform the following changes:

  1. Upload your custom CSS file to the server. The directory is as follows: skin/frontend/tm_themes/themeXXX/css:

    Magento._How_to_add_a_custom_CSS_file

  2. In order to make the CSS rules work, one should link the file to the template. Please navigate to app/design/frontend/tm_themes/themeXXX/layout and edit local.xml file:

    Magento._How_to_add_a_custom_CSS_file2

  3. Insert the following piece of code somewhere among the similar ones (it basically contains the relative path to your file):
    		<action method="addCss"><stylesheet>css/custom.css</stylesheet></action>

    Magento._How_to_add_a_custom_CSS_file3

  4. Save the changes.
June 2025
M T W T F S S
« Jun    
 1
2345678
9101112131415
16171819202122
23242526272829
30