How to Copy a Drupal Theme


If you plan on making modifications to a Drupal theme, the best way is to create a copy of the theme and turn it into a subtheme. There are two Drupal theme directories. The first is under the root "Themes" folder. This folder is reserved for the default themes. The "sites/all/themes" folder is reserved for custom themes, as well as other themes you've installed. If the custom theme directory isn't listed, create a new one.

  • Access your Web server's file-management program. If you are using a hosting solution like GoDaddy, access the server through the "File Manager." Also use an FTP program such as FileZilla. You'll need your server's IP address, user name and password to access the files. Contact your administrator if you do not know this information.

  • Open the "Sites" folder in the Drupal installation root. Open the "All" folder.

  • Look for a folder inside "All" marked "Themes." If you don't see one, create a new directory inside "All" and name it "Themes."

  • Move back to the installation root. Open the base "Themes" folder. Locate the theme folder inside that you want to copy.

  • Select the theme folder and copy it. If you are using an online file-management system, you should see a "Copy" button on the toolbar. If you are using an FTP program, right-click on the folder and select "Copy."

  • Navigate to the "Sites" folder. Open "All" then "Themes." Select "Paste" to copy the theme folder inside the "sites/all/themes" folder. Select "Rename" to name the theme. This helps you differentiate it from the other theme with the same name in the Drupal administration panel.

  • Log in to your Drupal administration panel. Click on "Site Building" then select "Themes." Select "Enable" and "Default" next to the theme you copied. Click "Save Configuration."

Related Searches


Promoted By Zergnet


You May Also Like

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!