The most definitive and up to date answer about best practice can come probably only from the wordpress.org theme review team, and right now they are different from the codex. just quoting it here, but I’m sure it might change with time
Themes are required to support the following WordPress-defined CSS classes, or similar elements:
Alignment Classes: .aligncenter .alignleft .alignright Caption Related Classes: .wp-caption .wp-caption-text .gallery-caption Post Classes: .sticky Comment Classes: .bypostauthor
While needing to be present in the stylesheet, .sticky and
.bypostauthor can remain empty (unstyled) if desired. The intent is
simply to ensure that theme developers have considered all classes
generated by WordPress
By this it doesn’t look like you have to have all the CSS rules that are listed in the codex page you pointed to.
Related Posts:
- How to add CSS class to custom logo?
- How to add custom css file in theme?
- Do I actually need to link my theme’s style.css in the theme files
- CSS classes for theme
- Why I can’t add a CSS style in this WordPress theme?
- How to make a theme with more than one CSS file?
- Editing the custom background CSS
- CSS in child theme not overriding the parent theme [closed]
- Why use while over if in single wordpress posts?
- How to highlight the current page in the nav menu?
- Sub folder CSS that’s read by Admin panel
- Where is definied the theme location for the main menu in a WordPress template?
- Dequeue a style file which is making website load slow!
- Theme Loading Into Dashboard
- How to edit my theme for full width?
- Which html elements should be styled in wordpress theme
- Font Awesome 5 Free – far working but fas is not? [closed]
- WordPress Unite Theme: Footer isn’t sticking [closed]
- What is the meaning of WordPress’s recommended css classes and where are they applied?
- Theming Using Bootstrap Glyphicons and WordPress Dashicons
- Having issue with WordPress wp_enqueue_style
- How can I wrap all blog posts image with
- theme style is applied on the dhasboard rather than the website
- LESS not working in WordPress [closed]
- A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom
- Why I obtain different visualization when I run the website on my local machine and on remote server?
- Some doubts about WordPress handle the horizontal main menu visualization
- Can’t change theme name
- How to use the _S framework
- Is there a list of default generated Gutenberg block CSS? Unable to align video blocks
- Why nav_menu_css_class doesn’t work with apply_filters?
- How can I fix my theme header for my CSS stylesheet?
- How to generate a rtl.css file for themes?
- Why the slideshow is not shown in my theme?
- adding navigation to genesis themes
- Custom link color or stylesheets
- What is The Best Way to Make Parallax header effect for wordpress theme ?? pure CSS or using JavaScript? [closed]
- Generating CSS Files Dynamically Using PHP Scripts?
- WP 3.4 – what action/hook is called when theme customisation is saved?
- Any alternate TinyMCE4 themes / subthemes?
- register_sidebar ignores ‘id’ and ‘class’
- Display a different theme for not logged-in users
- Add colors to existing color palette without replacing it
- Single Page WordPress Theme – Using page templates
- How to Modify a Widgets UL and/or LI Classes
- new theme permissions don’t allow me to edit
- Custom CSS In Uploads Folder
- Which theme foundry has clean coded themes, where code is poetry [closed]
- How can a Theme Contain no Header File or Footer File?
- Some translations do not work in my template class
- Custom CSS without css.php file
- WordPress not registering Theme Customization Section
- How to remove a file included in parent theme with locate_template() via child theme?
- qTranslate with my own theme and settings
- Stylesheet not linking
- How to control layout of posts on page?
- Include Parent functions.php in Child Theme functions.php
- How to override checkbox styles if these inputs have a unique id [closed]
- Where am I doing wrong in my theme menu?
- How to disable wordpress from overload my stylesheet styles with customizer styles
- How can my theme allow users to take advantage of advanced html tags in posts
- how to get the post attachement image in full size?
- Can I Set Up Session in WordPress Custom Page
- How do I remove inline style in featured image markup?
- different way to achive stylesheet_url
- Why is my CSS not loading?
- Set a featured image as a replacement to the header image
- Custom theme: How to call archive-post.php for viewing blog posts
- Theme Customizer not displaying saved values in wp_head (CSS)
- How can I hard code my sidebar?
- Thesis -style Navigation
- White screen when attaching css to function.php
- Create theme for mobile phones and tablets only?
- Never actually adding the action? Or do I have to call the action?
- How to create a WP theme that use BootStrap? [closed]
- Theme Checker Text Domain
- WordPress Animation Adjustments
- How to copy page/post from one theme to another?
- Not sure how to debug this npm install error. This is a wordpress theme that comes with a built-in gulp/webpack task automation [closed]
- Why front-page.php doesn’t show content of file instead shows loop
- Find the source file causing a Mixed Content warning
- How can I not disable my theme when I want to upload a new version of it?
- Are paginated comments required for publishing Themes?
- Avoiding do_shortcode() loops
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- Correct was to customise theme using get_theme_mod in scripts
- Custom theme vs theme customization?
- how can I re-utilize and class on a child theme
- How to figure out which wordpress theme a site was using?
- Incorrect search results in search.php – issue triggered by using `define(‘BodyID’, ‘search’); the_post();` in search.php
- Flexslider not working for my custom theme WordPress
- “No Data Received” error in Chrome every time i try to update the theme functions file
- Redirect to custom login page
- How to close open divs in post loop
- Display Today’s date outside the loop?
- Confused on loading page content
- Turning WordPress Into full-featured website?
- Detect custom font size
- Meaning of “if ( is_home() && ! is_front_page() )” snippet?
- WordPress search field won’t get wider