WordPress comes with some built-in comments system. While developing a WordPress theme you need to style the individual comments and comment form to display them appropriately. Here is the list of CSS classes to style the comments: /*Individual Comments*/ .commentlist .reply {} .commentlist .reply a {} .commentlist .alt {} .commentlist .odd {} .commentlist .even {} […]
WordPress comes with some built in widgets such as recent comments, calendar, tags, categories etc. While developing a WordPress theme you need to style the default widgets too. Here is the list of CSS classes to style the built in widgets .widget {} #searchform {} .widget_search {} .screen-reader-text {} .widget_meta {} .widget_meta ul {} .widget_meta […]
The visual editor is the most used component of the WordPress. There are some classes added by WordPress to the visual editor elements to style them. As a theme developer its your responsibility to make sure you have added proper CSS attributes to these classes. Here is the list of classes WordPress automatically adds to […]
Drag and Drop Page Builders make it easy to build responsive grid-based page content that adapts to mobile devices. It’s a whole new way of content creation that’ll help you create your home, contact, about us or any other page where a linear layout won’t convey your message. There are many advanced page builders such […]
WordPress provides two editors for editing post content i.e., visual and HTML editor. To make any one of them default you need to use the wp_default_editor filter. Here is example code to make Visual editor as the default editor <?php add_filter("wp_default_editor", create_function(", "return "tinymce";"));
WordPress provides two editors for editing post content i.e., visual and HTML editor. To make any one of them default you need to use the wp_default_editor filter. Here is example code to make HTML editor as the default editor <?php add_filter("wp_default_editor", create_function(", "return "html";"));
This post is a part 5 of HTTP/2 Complete Tutorial post series. HTTP/1.1 is a old protocol that is being used in modern websites which are very different from the websites of the time HTTP/1.1 was introduced. Therefore a new protocol was required to make the web faster so HTTP/2 was introduced. As WordPress is […]
The register_setting function saves the value attribute on form submission directly into the database. We can also alter or validate the value based on our choice. The register_setting function takes a third argument which is a callback, this callback is fired before it saves the settings into the database. For uploading files through settings pages […]
Validation and Sanitization are two terms are often confused and/or misused by beginning developers. So what is the difference between sanitization and validation? Well let’s start with validation, as it happens before sanitization. Simply put, validation is verifying that the data being submitted conforms to a rule or set of rules you (the developer) set […]
Most Commented