Home Tutorials Default WordPress theme, Kubrick, is not valid?

Default WordPress theme, Kubrick, is not valid?

Author

Date

Updated on

Category

First, I admit that only geeky WordPress designers like myself would find this amusing. It’s a small error in the WordPress default theme, Kubrick.

Here it is

kubrick-error

The paragraph tag is not closed correctly. If you have the Kubrick theme activated, on your password-protected post, the comments area will say, “This post is password protected. Enter the password to view comments.”

You can find that message in the Kubrick comments.php file as:

<p class=”nocomments”>This post is password protected. Enter the password to view comments.<p>

To close it correctly, it should be:

<p class=”nocomments”> </p>

I spotted this a long time ago while learning how to customize the comments template and thought that the WordPress people would fix it soon. Looks like they haven’t touched the comments.php file for a while, not even after WordPress had to update Kubrick for the 2.1 series.

I’m posting it now to reiterate the first rule in my WordPress tutorial series, which is close everything in the order that you open them.

While developing your own WordPress theme, you should validate all versions and templates of your theme, which should include the password-protected message. For a list of pages and template versions to validate, go to lesson number 16 of the tutorial series.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Recent posts

The Deeper Meaning and Purpose Behind Shapes in Web & Graphic Design

Sometimes in web design, a clean website is often the best choice for certain clients. Instead of elaborate backgrounds or too many aesthetic choices,...

How to Easily Design a Website Without Coding

Are you looking to build a website and you don’t know how to code? Online web design services are helpful to create website templates...

The importance of SSL Certificates as part of a web hosting package

Building a successful business requires trust, and gaining trust can be difficult especially when you run a business where it is taken for granted...

How Can Domain Name Extensions Influence Your Brand Name?

Are domain name extensions important in naming your brand? The shortest answer is "Yes." In today's online world, it is the first thing that...

Domain Name Generation Tips for Business in the Teen Niche

Choosing a domain name is important for every business; how much more when you want to choose a name for a niche site like...

Recent comments