MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

How to create a WordPress custom theme? Part-2

How to create a WordPress custom theme?

What is the WordPress theme?

The WordPress Themes are files that work together to create the design and functionality of a WordPress site. Themes provide a style (including font styling), colors, page layouts, widget positions, etc. You can change the theme of your site without changing the content of the site. Themes provide a unique look to your site.

The basic files need to make a theme as follows:-

  1. Style.css
  2. Screenshot.png
  3. Index.php
  4. Header.php
  5. Footer.php
  6. Functions.php
  7. Front-page.php
  8. Sidebar.php
  9. search.php

I’ll explain its details of each file in next blog. Here, we’ll see only style.css.

Now, Let’s start.

  1. Login the WordPress by typing this http://localhost/wordpress/wp-admin/
WordPress login page at localhost/wordpress/wp-login.php with username and password fields

2. Here, you can see WordPress Dashboard

WordPress Dashboard showing the Welcome panel, Site Health Status and Quick Draft

3. At left side, just click Appearance->Theme

WordPress Dashboard with the Appearance menu open and Themes highlighted

4. In WordPress, there are three themes which is given by default. If you want to add a new theme , so you have to click Add New Themes.

WordPress Themes page with Twenty Seventeen, Twenty Twenty and an Add New Theme tile

5. Just click the left upper side Add New button.

WordPress Themes page showing 14 installed themes and the Add New button at the top

6. Now you can see there is a huge number of themes which you can install from here. But these are uncomplicated and unattractive. No one wants a website to be that much simple. We can create it more attractive.

WordPress Add Themes screen listing 3807 popular themes available to install

7. Go to this path C:\xampp\htdocs\wordpress\wp-content\themes and open theme folder.

Windows File Explorer open at C:\xampp\htdocs\wordpress\wp-content\themes listing theme folders

8. Create a new folder and named it with the custom theme within the themes folder.

New folder named customtheme being created in the WordPress wp-content themes folder

9. In the customtheme folder, first of all, create style.css file after that creates an index file.

Customtheme folder in File Explorer containing empty index.php and style.css files

10. In style.css file, you have to pass some basic values for introducing this theme to WordPress that this theme is created by you and it’ll be shown within the WordPress theme repository also.

11. Now open style.css file with sublime text

Right-click menu on style.css with Open with Sublime Text highlighted

11. Here, you can see. There are some parameters that passing values to introduce in WordPress. You have to write this code within the comment. What the name of this theme is, its description, version, author name who has created this theme, author URL, theme URL, text domain, license, and so on.

Style.css in Sublime Text with a theme header comment: Theme Name, Description, Version, Author, License

12. Custom Theme has been created now with its name, version, description, author name. It’s the basic theme layout. Now you have to pass screenshot.png.

WordPress theme details for Custome Theme version 1.1 by Usha Kiran, with a blank screenshot preview

It’ll look like this

Custome Theme details in WordPress now showing a screenshot.png preview image

Thanks

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
With MotoShare.in, you can book a bike instantly, enjoy doorstep delivery, and ride without worries. Perfect for travelers, professionals, and adventure enthusiasts looking for a seamless mobility solution.

Related Posts

WordPress Typography Patterns: Styled Lists, Notice Boxes, and Code Blocks with Reusable CSS

This guide modernizes a legacy WordPress typography post into practical, reusable patterns for custom list markers, callout boxes, and code styling. It focuses on maintainable CSS and editor-friendly markup you can reuse across posts and documentation pages.

Read More

How to create a WordPress custom theme? Part-4

How to create a WordPress custom theme? It’s looking improper yet, therefore we have to set the path of CSS and JavaScript to make it on proper…

Read More

How to Import DOCX into WordPress with Mammoth: Text, Images, Tables and Code

A practical, single-file publishing workflow for bloggers, technical writers and DevOps training teams. Figure 1. Original featured illustration (1200 × 630 pixels). Writing an excellent tutorial is…

Read More

Moving a WordPress Site to Webflow: What Happens to Your Hosting, DNS and Email

Most guides about Webflow answer one question: is it the right builder for you? This one starts after that decision. You have a WordPress site on Bluehost,…

Read More

How to Choose the Right Website Development and SEO Partner for Your Business

A professional website has evolved far beyond a digital business card or an online brochure. Today, it serves as the core foundation of a brand’s entire online…

Read More

What to choose: front-end or backend development?

Regarding web development, two main areas play a crucial role in creating a functional and visually appealing website: frontend and backend development. Frontend development focuses on the…

Read More