HOW TO BUILD A CUSTOM WORDPRESS THEME FROM SCRATCH - IN INDIA
There are around 12 core files. Here is Overview of the main files you will be working with: • Header.php – Contains everything you’d want to appear at the top of your site. • Index.php – The core file that load your theme, also act as the homepage. • Functions.php – A file that can be used to configure the wordpress core, Without editing core files. • Sidebar.php – Contains everything you’d want to appear in sidebar. • Footer.php – Contains everything you’d want to appear at the bottom of your site. • Archive.php – The template file used when viewing categories, dates, posts by author,etc. • Single.php – The template file used when viewing the individual post. • Comments.php – Called at the bottom of single.php file to enable the comments section. • Page.php – Similar to single.php • Search.php – The template file used to search display search results. • 404.php – The template file that display when a 404 error occurs. • Style.css – All the styling goes here. Each of these files contains series of php template tag. By using these tags we can insert dynamic content. 1. Configuring the stylesheet All the details of a WordPress theme are contained within the stylesheet. At the top of your style.css add the following code. (Image:- 1) 2. index.php Open the index.php, add this piece of code and save the file: The index-file now contains the code that calls to the header, sidebar and footer template files (Image:- 2) 3. header.php Open the header.php, add this piece of code and save the file: (Image:- 3) 4. footer.php Open the footer.php, add this piece of code and save the file: (Image:- 4) 5. sidebar.php Open the sidebar.php, add this piece of code and save the file: (Image:- 5)
4.00/5
1 reviews
Price:
₹ 0,00
₹ 0,00
Contact
CONTACT