Latest posts

  • Templates and Child Themes

    Introduction to WordPress Templates and Child Themes In this post, we’ll explore WordPress templates, how they work, and their role in the theme development process. We’ll also dive into child themes, which are crucial for safely modifying a theme without losing updates or breaking the original theme’s functionality. WordPress Templates: The Backbone of Theme Development…

    Read more

  • WP Theme Development: Styles, Functions, and Basic Theme Setup

    Table of Contents Understanding Styles and Functions in WordPress Themes What are Stylesheets? A stylesheet in WordPress is typically a CSS file that defines the visual styling of a theme. It controls layout, fonts, colors, spacing, and overall aesthetics. Every theme must have a style.css file located in the theme’s root folder. This file does…

    Read more

  • Day 13: Testing & Setting Up

    Setup WP-Unit Tests: Write Sample Unit Tests: Create Test File: Create a directory named tests in your plugin/theme root. Create a file named test-sample.php inside the tests directory. Create a Test Class: Example class in Run Tests: Execute tests using PHPUnit: vendor/bin/phpunit or just phpunit if you have global composer. Theme Testing: Plugin Testing: Best…

    Read more