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

Flat Design for Your WordPress Site: What Is It + 4 WordPress Flat Design Themes

Web designers in the past mostly used 3D styles for buttons that made the button seem more realistic. That all changed when flat design...

LawBlog WP Theme Review

Regardless of which area of law you practice, it’s imperative that you have proper online representation. You need to give your customers a feeling...

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

Recent comments