eightshift-frontend-libs icon indicating copy to clipboard operation
eightshift-frontend-libs copied to clipboard

Editable header/footer

Open SenselessTaste opened this issue 3 years ago • 1 comments

Describe your feature request

It would be nice to have a feature like editable header and footer using blocks without editing code directly.

Describe the solution you'd like

Adding blocks in wordpress customizer

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in this repo.

Yes

Please confirm that you have searched in our documentation and couldn't find the answer.

Yes

SenselessTaste avatar Jul 11 '22 19:07 SenselessTaste

Hi @SenselessTaste!

You can do this by using either FSE features (we avoid using them, they are still changing so it's not that 'safe' to use them) or with reusable blocks.

By using reusable blocks you can create a 'partial' in the admin, then in theme options create an option where you'll select that certain reusable partial that can be used as a footer/header inside the correct template (footer.php or header.php).

dingo-d avatar Jul 18 '22 11:07 dingo-d

Hi @SenselessTaste,

as Denis mentioned, you can implement a "partials" system with Reusable blocks, and now in FE libs 8.3.0 there's a base navbar and footer block you can use.

goranalkovic-infinum avatar May 15 '23 10:05 goranalkovic-infinum