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-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 website.

Restaurantly WordPress theme on localhost shown as plain unstyled HTML before linking CSS and JavaScript
  1. So, go to your downloaded HTML theme and copy that files which consist of CSS and JavaScript files.
Windows Explorer showing assets and forms folders selected in the downloaded Restaurantly HTML theme

2. Go to your WordPress customtheme folder and paste here that files.

WordPress customtheme folder with pasted assets and forms folders beside PHP files and style.css

3. Linking by this get_bloginfo(); function to set the directory. Retrieves information about the current site.

Header.php in Sublime Text linking CSS files using get_bloginfo('template_url') paths
WordPress developer docs for get_bloginfo with the template_url parameter highlighted

4. If you refresh your website url, you’ll see a progress bar.

Localhost WordPress site showing a loading spinner preloader after refresh

5. In footer.php file, pass this function within src=”” path. JavaScript file will be linked to the localhost.

Footer.php in Sublime Text linking JavaScript files with get_bloginfo('template_url') in script src

6. Now, CSS files have been linked to our root path of customtheme and looking awesome.

Fully styled Restaurantly WordPress custom theme homepage running on localhost

7. Just right click on your website theme and click view page source.

Right-click browser menu on the Restaurantly site with View page source highlighted

8. The CSS files has been linked to your localhost root.

Page source of localhost WordPress site showing customtheme CSS and font links highlighted

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-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…

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