• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
wpdesigner-logo

WPDesigner

WordPress Themes, Blog Design, and Web Development

  • News
  • Tutorials
    • Theme Development
    • WordPress Tips
  • Resources
  • Reviews
    • Hosting Reviews
  • Collections
    • Plugin Collections
    • Theme Collections
  • Contests
  • WWMD
  • Our Themes
  • Login
WPDesigner » Tutorials

Default WordPress theme, Kubrick, is not valid?

Last Updated on October 10, 2019 by Jazib Zaman

kubrick-error

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.

About Jazib Zaman

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

  • LinkedIn
  • Pinterest
  • RSS
  • Twitter

Recent Posts

  • Secure Your WordPress Admin Area with Some Reliable Tools
  • What is SEO and How Does it Work?
  • 40+ Solutions to Supercharge Your WordPress Website
  • Create Your Own Website or Outsource to a Web Studio?
  • 4 Things You Will Need for a Successful Career in the Tech Industry

Copyright © 2023 · All Rights Reserved · A Project of TechAbout LLC.
All of our themes are 100% GPL compatible.

  • About
  • Write for us
  • Archives
  • Contributions
  • Privacy Policy
  • Feedback
  • Terms & Conditions