Site logo

Archived topic

Elements not showing on page.

2 replies · Started by Steve on January 6, 2022

Viewing posts 1–3 of 3

I am working with headers and other elements. I have some elements set to show on only one page. When I go onto the editor the element is not listed as an active element and not showing. Is there a limit to how many elements a page can have? I have a few that are site wide and a few for specific pages.

So it looks like there can only be one header per page. I have site wide small banner that I wanted site wide and then different header images for specific pages. Is there a way to do that?

Hi there,

thats correct - there can only be 1 x Header Element on each page.

Alternatives:

Block Elements - you can have as many as you want on a page, theres a few docs on them including a page hero specific one.

https://docs.generatepress.com/?s=block+element

Hook Element - if you're into HTML / Code then you can do the same as Block Elements without the need for the block editor.

https://docs.generatepress.com/article/hooks-element-overview/

For positioning in the template both the above Elements use the GP Hooks - which you can see placement of the general ones here:

https://docs.generatepress.com/article/hooks-visual-guide/

For reference the Header Element gets hooked into the generate_after_header hook

This archived topic is closed to new replies.