Archived topic
Using elements on multiple pages
3 replies · Started by J on February 22, 2021
Hi,
Using elements more and more, I ran into the following configuration problem.
I use three elements: a layout element, a block-left sidebar element and block hook element that injects a header on a page. Each element is used on 19 pages. So every element contains a list of 19 pages in the 'display rules' tab.
The problem is this:
- Adding a page that needs these three elements requires editing all three elements. This is time consuming and error prone.
- The element configuration is hard to explain to editors of the website. This leads to questions and support.
The question:
- Is there a smarter way to achieve this? Can I wrap the elements into one super element? Should I leave elements and use templates?
J
Hi there,
this is my preferred method:
https://generatepress.com/forums/topic/header-layout-control-for-client/#post-1421567
It will register a custom taxonomy where you can define your own Terms for using as Display Rules. This is applied to posts and pages.
Thank you, David. That was exactly the kind of answer I was hoping for.
Works very good. Makes elements even more useful.
J
Glad to be of help!