PHPackages                             greenpeace/planet4-child-theme-nordic - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. greenpeace/planet4-child-theme-nordic

ActiveWordpress-theme

greenpeace/planet4-child-theme-nordic
=====================================

Planet4 Child theme for GP Nordic

v1.47.13(5mo ago)34.5k[1 PRs](https://github.com/greenpeace/planet4-child-theme-nordic/pulls)GPL-3.0+SCSSCI failing

Since May 15Pushed 5mo ago8 watchersCompare

[ Source](https://github.com/greenpeace/planet4-child-theme-nordic)[ Packagist](https://packagist.org/packages/greenpeace/planet4-child-theme-nordic)[ RSS](/packages/greenpeace-planet4-child-theme-nordic/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (9)Versions (114)Used By (0)

c# Greenpeace Planet 4 Nordic Child Theme

The **Planet 4 Nordic Child Theme** is a child theme built for the [Planet 4](https://www.greenpeace.org) project. It customizes the parent theme by adding unique features and styles specific to the Nordic region. This child theme customisez the [Planet4 Master Theme](https://github.com/greenpeace/planet4-master-theme) following this [Design System](https://zeroheight.com/05f6e9516/p/76cd7b-planet-4-design-system).

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Development](#development)
- [File Structure](#file-structure)
- [Coding Standards](#coding-standards)
- [Contributing](#contributing)
- [License](#license)

Prerequisites
-------------

[](#prerequisites)

Make sure you have the following tools installed on your machine:

- [Node.js](https://nodejs.org/en/) (v16 recommended)
- [npm](https://www.npmjs.com/) (comes with Node.js)
- [Composer](https://getcomposer.org/) (for PHP dependencies and coding standards)
- [WordPress](https://wordpress.org/) setup (parent theme and WordPress installation)

Installation
------------

[](#installation)

To install and set up the theme locally, follow these steps:

1. **Clone the repository**:

    ```
    git clone https://github.com/greenpeace/planet4-child-theme-nordic.git
    ```
2. **Navigate to the theme directory**:

    ```
    cd planet4-nordic-child-theme
    ```
3. **Install the npm dependencies**:

    Run `npm install` to install all necessary Node.js packages:

    ```
    npm install
    ```
4. **Install Composer dependencies**:

    Run `composer install` to install PHP dependencies (like coding standards):

    ```
    composer install
    ```
5. **Activate the theme**:

    - Upload the child theme to your WordPress `/wp-content/themes` directory.
    - Activate the theme from the WordPress admin dashboard (`Appearance > Themes`).

Usage
-----

[](#usage)

Once installed, the theme can be customized and extended as per the needs of the Nordic campaign. The child theme inherits most of its functionality from the parent theme, but you can add custom styles, templates, and features as needed.

To modify or add features to the theme, navigate to the `planet4-nordic-child-theme` directory, make changes to the appropriate files, and use the provided npm scripts for development.

Development
-----------

[](#development)

### Available npm Scripts

[](#available-npm-scripts)

- **Build CSS**: Compiles the SCSS files into a minified CSS file.

    ```
    npm run build:css
    ```
- **Build**: Compiles all assets for production using Webpack and outputs them to the `build/` directory.

    ```
    npm run build
    ```
- **Start**: Launches a development server with live reloading and builds assets in development mode.

    ```
    npm run start
    ```
- **Lint CSS**: Lints the SCSS files to ensure coding standards are followed.

    ```
    npm run lint:css
    ```

### Composer Scripts for PHP Code Standards

[](#composer-scripts-for-php-code-standards)

- **Fixes**: Automatically fixes PHP code style issues.

    ```
    composer run fixes
    ```
- **Sniffs**: Runs PHP CodeSniffer (`phpcs`) to check PHP files against coding standards.

    ```
    composer run sniffs
    ```

File Structure
--------------

[](#file-structure)

Here's a brief overview of the key directories and files in the project:

```
planet4-nordic-child-theme/
├── assets/             # Compiled theme assets (CSS, JS)
│   ├── build/          # Output directory for compiled and minified production assets
│   └── src/            # Source SCSS and JS files
├── includes/           # Theme-specific PHP includes
├── page-templates/     # Theme-specific Twig templates
├── vendor/             # Composer dependencies
├── functions.php       # Main theme functions
├── webpack.config.js   # Webpack configuration for asset bundling
├── style.css           # Main stylesheet (import parent theme styles)
├── package.json        # Node.js dependencies and npm scripts
├── composer.json       # PHP dependencies and Composer scripts
└── README.md           # Project documentation (this file)

```

### Customization

[](#customization)

To override parent theme styles, place your custom SCSS files in the `assets/src/scss/` directory. These files are automatically compiled and output to `assets/build/` when running the build scripts.

### Coding Standards

[](#coding-standards)

We follow [WordPress Coding Standards](https://developer.wordpress.org/coding-standards/) to ensure clean, readable, and maintainable code.

The coding standards are enforced through `phpcs` (PHP CodeSniffer) and can be automatically corrected using `phpcbf`. Composer handles both tools.

To check for coding standard violations:

```
composer run sniffs
```

To automatically fix issues:

```
composer run fixes
```

Contributing
------------

[](#contributing)

We welcome contributions! To contribute to this project:

1. Fork the repository.
2. Create a new branch (`git checkout -b feat/my-feature`).
3. Make your changes.
4. Push your branch (`git push origin feat/my-feature`).
5. Open a Pull Request.

Please ensure that your code follows the project's coding standards. Use `npm run lint:css` for CSS and `composer run sniffs` for PHP.

License
-------

[](#license)

This project is licensed under the [GNU License](LICENSE). See the LICENSE file for details.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance72

Regular maintenance activity

Popularity24

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 99.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~33 days

Recently: every ~57 days

Total

62

Last Release

163d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73b0188184085e27029f0917c76dbc21e87c206c01909c3e931d53adf0bb3b3c?d=identicon)[sagarsdeshmukh](/maintainers/sagarsdeshmukh)

![](https://avatars.githubusercontent.com/u/939357?v=4)[Nikos Roussos](/maintainers/comzeradd)[@comzeradd](https://github.com/comzeradd)

![](https://avatars.githubusercontent.com/u/71187640?v=4)[Planet 4 Bot](/maintainers/planet-4)[@planet-4](https://github.com/planet-4)

![](https://avatars.githubusercontent.com/u/20765672?v=4)[skoleva](/maintainers/skoleva)[@skoleva](https://github.com/skoleva)

---

Top Contributors

[![elncetoo](https://avatars.githubusercontent.com/u/16122851?v=4)](https://github.com/elncetoo "elncetoo (544 commits)")[![comzeradd](https://avatars.githubusercontent.com/u/939357?v=4)](https://github.com/comzeradd "comzeradd (2 commits)")[![lithrel](https://avatars.githubusercontent.com/u/617346?v=4)](https://github.com/lithrel "lithrel (2 commits)")

---

Tags

wordpress-theme

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/greenpeace-planet4-child-theme-nordic/health.svg)

```
[![Health](https://phpackages.com/badges/greenpeace-planet4-child-theme-nordic/health.svg)](https://phpackages.com/packages/greenpeace-planet4-child-theme-nordic)
```

###  Alternatives

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[johnbillion/user-switching

Instant switching between user accounts in WordPress and WooCommerce.

19768.3k2](/packages/johnbillion-user-switching)[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/user-plugin

User plugin for October CMS

11954.3k13](/packages/rainlab-user-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
