xfiveco / generator-chisel

Chisel is a development framework for creating easy to maintain and fast WordPress websites.
https://www.getchisel.co
MIT License
269 stars 37 forks source link

Add missing wp_body_open #512

Open marcinkrzeminski opened 2 years ago

marcinkrzeminski commented 2 years ago

Our base.twig template is missing a function that triggers wp_body_open hook that was introduced in version 5.2 of WordPress.

Here's a snippet that I use in my current project:

....
<body class="{{ body_class }}">
{{ fn('wp_body_open') }}