How to Combine Separate WordPress Themes
WordPress is a dynamic content management system, meaning that the content of the blog is kept on a database, separate from the files that make up the appearance of the site. These files are called themes and can be accessed either through FTP or through the theme editor of the site. Because all themes have the same underlying structure, it is possible to combine different aspects of two WordPress themes into one --- assuming that the themes are functionally and aesthetically similar.
Instructions
-
-
1
Open the folders containing each theme's files. Choose the aspects of each theme that you want to combine, based on the files available. These files are header.php for the top header of the site, sidebar.php for the sidebar and footer.php for the footer. Note that there may be more than one sidebar file. The rest of the files hold the content area, including search pages, archive pages and comments area. Decide which theme's content area you want to keep; this will be the base of your new theme. Rename this folder so that you don't forget this.
-
2
Copy whichever header, sidebar, and footer files from the other theme you want to combine with your new base theme.
-
-
3
Open each of the files you copied in a text editor. Make a note of the names of each of the elements in this file, including the IDs of all <div> tags.
-
4
Open the style.css file in the folder from which you copied these files. Go through the file and delete any section that is not contained in the files you just moved. For example, if the footer.php file calls <div id="footer"> and <div id="logo">, keep these sections, plus any section that references them; for example, keep footer.img if it is present.
-
5
Copy everything that is left in the style.css file, and paste it into the style.css file of your new theme. Scroll right to the bottom and paste it on a new line.
-
1
Tips & Warnings
If the themes are drastically different, you may have to change the dimensions of the <div> containers, both in the files that you moved and the files in the base theme. To do this, open style.css and edit the Width, Height and Position attributes to suit.
References
- Photo Credit Comstock/Comstock/Getty Images