0

Developing a WordPress theme. I've got two questions

  1. Does the first response here hold true even after 5 years?
  2. Is it necessary / considered a good practice to include all the default html tags, for example h1,h2,h3,h4,h5,h6,blockquote,acronym,abbr,code,pre,address etc in my theme css file?

P.S: My aim is to publish the theme in wordpress.org. Even if they did allow me to publish it without the extra styling, I would like to know if it is a good practice to include it in any theme.

1 Answer 1

0
  1. So far, this is the most comprehensive list of all styling that theme might need for styling default widgets and other elements: Default WP CSS classes for a theme. You don't need to style all of them, but it is a good idea to use Theme Checker plugin to scan your theme before submitting it to WordPress.org, because it should pick up all the things that you might be missing, including in CSS.

  2. Your theme should have good typography, and that requires you define styling for all typography elements, like headings (h1...6), paragraph (p), blockquote, pre... If you don't do that, browsers fall to default styling for those elements, and your theme might look different in different browsers.

My suggestion is to start with some boilerplate stylesheet like Normalize.css or some CSS/JS/HTML framework (like Foundation, but that might be an overkill, depending on your theme).

2
  • Thank you. That answers the second part. Please provide more information on the first one.
    – AashikP
    Commented Sep 10, 2017 at 18:13
  • I have expanded my answer. Commented Sep 10, 2017 at 18:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.