Website Without PHP
US
Menu

WordPress theme

Also known as: theme, child theme

A WordPress theme is a ready-made package that decides how your WordPress site looks and how its pages are laid out. Change the theme and the design changes.

WordPress Last updated:

A WordPress theme is a ready-made package that decides how your WordPress site looks and how its pages are laid out. Change the theme and the design changes. Because a theme is code that runs on your server, it takes part in every PHPPHP is a programming language that builds your web pages on the computer that hosts your site, just before they reach the visitor. WordPress runs on it. upgrade and in your site’s security, not just in its design.

What is a WordPress theme?

A theme is a set of PHP templates, styles and scripts. Switch the theme and the same content appears in a different layout.

A theme contains template files that decide how a post, a page or an archive is put together, plus stylesheets, fonts, images and often some JavaScript. It also usually includes functions that add menus, widget areas, custom page types and options in the admin screen. In the WordPressWordPress is free software for building and editing a website in your browser. It is written in PHP, so it builds each page when someone visits. system, the content stays in the database while the theme decides how to present it.

Themes range from simple, lightweight designs to large multipurpose packages with dozens of options and bundled features. Some are built for a page builderA page builder is a WordPress add-on, such as Elementor, that lets you design pages by dragging blocks around instead of working with code., and some come with their own bundled plugins. The bigger the package, the more code you run and have to keep current.

What a theme means for your PHP site

Since a theme is PHP, it must be compatible with the PHP versionA PHP version is a numbered edition of PHP, like 8.3. Each edition is looked after for a limited time, then gets security fixes only, then nothing. of your hostingWeb hosting is the service that keeps your website's files on a computer that is always online, so visitors can open your site at any time.. A theme written many years ago may call functions that have since been removed or changed. This shows up as warnings, a broken layout or a fatal errorAn error log is a file where your website's software writes down what went wrong, with the time and place. It is the first thing to check when a site breaks. as soon as the host upgrades PHP. The theme author’s notes on compatibility and the date of the last update are your first clues.

A theme that is no longer maintained is a risk for another reason. Any security problem found in it will not get a fix, and the theme stays on your server anyway. Treat a theme with no updates for a long time the same way you would treat a PHP version past its end of support: plan a move before it forces one.

How to check your theme

In the admin screen, open Appearance and then Themes to see the active theme and its version. Check the theme’s page or its author’s site for the latest version and for notes on PHP and WordPress support. If you made code changes yourself, find out whether they sit in a child theme. If they do not, ask whoever built the site where those changes are documented.

Also look for unused themes. WordPress keeps themes installed even when they are not active, and they are still code on your server. Remove the ones you do not use after you have made a backupA backup is a separate copy of your website's files and database, so you can bring the site back after a mistake, a hack or a failed update..

Theme problems and a fresh start

Sometimes the practical choice is not to update the theme but to leave it behind. If a heavy theme and a stack of plugins exist only to show a few dozen pages, a new build as a static websiteA static website is made of ready-made page files that the server hands over as they are, with no PHP code or database working behind the scenes. may be simpler to run. The design can be carried over, and the live site has no theme code running on the server during a page view. That gives a smaller attack surfaceThe attack surface is the total of all places where an attacker could try to get in, such as logins, forms, plugins and the code on your server., though not a risk-free site.

Our PHP migration service moves a site to a modern stack or another host, and we can update PHP in WordPress to get it onto a supported PHP version when you want to keep your theme.

When to act

Act when your theme has not been updated for a long time, when the author states no support for your PHP version, or when the host announces a PHP change. Test on a copy first, and keep a way back.

Frequently asked questions

What is the difference between a theme and a plugin?

A theme controls the look and page structure of your site. A plugin adds features. In practice the line blurs, because many themes bundle features, and that is one reason a theme change can break more than the design.

What is a child theme?

A child theme is a small theme that inherits everything from a parent theme and holds only your own changes. When the parent theme is updated, your changes stay in place. Without a child theme, edits made directly in the parent can be lost.

Can an old theme block a PHP update?

Yes. A theme is PHP code, so it must work on the PHP version your host runs. An old theme can use features that newer PHP versions removed, which leads to warnings or a fatal error after the upgrade.

Do I need to keep my theme updated?

Yes, if it is still maintained. Updates fix bugs and security problems and keep it compatible with new WordPress and PHP versions. If the author has stopped updating it, plan a replacement.

Related pages

  1. Domain
  2. Check
  3. Result
  4. Report

Which PHP version does your site run?

Enter your domain. We read only what your site already sends in public: the headers and the top of the homepage. No scan, no login. We keep the domain and the result, never your IP address.