About this Article: All WordPress Theme Files Explained! What are the files in a wordpress template, How to edit from admin side, Where and what to edit in a wordpress theme. This article is purely aimed to help the wordpress newbie on how to edit a wordpress and which all theme files to edit in a wordpress theme and how to do this from your admin section. The PROs may toggle to the next article as you might already be knowing what i am talking about right now.
What all files to look for and for what all. Here is a screenshot that could give you a better picture of what i am referring to. On the right hand side, the drop down to select the template or theme you want to edit now, select the apt template and below that you would find the template files and make sure You BACKUP Before you edit any file.
Each theme would have different set of files additional, But there is a set of common theme files that are a must. I have explained all the possible files that are found in a theme usually and editing that would change what.
Templates
* 404 Template (404.php)
* Comments (comments.php)
* Footer (footer.php)
* Header (header.php)
* Main Index Template (index.php)
* Page Template (page.php)
* Popup Comments (comments-popup.php)
* Search Form (searchform.php)
* Sidebar (sidebar.php)
* Single Post (single.php)
* Theme Functions (functions.php)
* about.php (about.php)
* ads.php (ads.php)
* comments1.php (comments1.php)
* defaulthome.php (defaulthome.php)
* defaultindex.php (defaultindex.php)
* home.php (home.php)
* tabs.php (tabs.php)Styles
* Stylesheet (style.css)
* ie6style.css (ie6style.css)
* ie8style.css (ie8style.css)
* iestyle.css (iestyle.css)
* styleBlue.css (styleBlue.css)
* styleGreen.css (styleGreen.css)
* stylePink.css (stylePink.css)
* stylePurple.css (stylePurple.css)
* styleRed.css
Files Explained:
404 Template (404.php) : Basically to change how your 404 not found error would look like or display what message
Comments (comments.php): Contains the code to the comment section partially and rest would be found in Comments1.php or comments2.php, Its not necessary that you would have 3 comments.php files, some themes have only one. These contains info about form inputs on adding comments, avatars etc.
Footer (footer.php): Contains the code for the footer, backup and edit them on how to see your footer changes
Header (header.php): Same goes to the header, edit or add HTML or php to header to play with the head of the Template
Sidebar (sidebar.php) : This contains the code for the Sidebar, One of the most important part that you would want to edit apart from the widgets, again back up before editing.
Single Post (single.php) or Post.php : A very important template file that needs to be edited at times to add some newsletter snippet, Adsense code etc to the post. This is the part of the template that repeats itself in each and every post, simply the code for the post body for each and every post of your blog.
Theme Functions.php: This contains the functions used in a template, sometimes in order to add new features to WordPress, Like for example, show twitter avatars instead of WordPress avatar in comments, In this case we require a new function to be added, add it here.
Hope i have covered all important files, let me know if i missed any 🙂 Ohhh i forgot, i almost missed it lol : The stile functions, its usually styleIE6.php and style.css. The file you need to edit is Style.css, basically it talks about the basic colors, fonts , sizes used at various parts of the wordpress blog. Some themes have number of style sheets like style blue, style red etc..thats when the theme gives an option in the admin panel to change the color from admin side.
Let me know your thoughts on the article.
[ratings]
Hi, maybe you could help me. I'm trying to design a blog, and I am finding that the wordpress themes are a bit confusing. I'd like to have a left sidebar to display hperlinks, and I'd also like widgets preferably on a right sidebar. I've tried several themes and haven't found one that will do both. One or two have the left and right sidebars as features but both don't seem to work together. One theme I've tried is the Twenty Ten theme.
Thanks
Hey Greg,
The wordpress is best known for its simplicity! so i bet – once you get and overview and get to know more on the wordpress themes and its functionality it would be easy for you to set up your wordpress blog. there are tonnes of free themes that you could try out installing and playing with the links, blogroll and widgets. check out this link http://orangecopper.com/blog/best-wordpress-theme… for more wordpress themes. If you need a skype walkthrough on how to use wordpress i would be happy to give you a jumpstart the way i give to most of my clients. feel free to contact me at joshuthomas at gmail.com
cheers
Josh
Ciao, davvero interessante, grazie
Good day! This post couldn’t be written any better! Reading this post reminds me of my good old room mate! He always kept chatting about this. I will forward this write-up to him. Fairly certain he will have a good read. Many thanks for sharing!