Archived topic
What are Elements i plain English?
3 replies · Started by Cay on May 10, 2021
Are Elements a container for Blocks? Or what are they?
I have spent a lot of time trying to understand Elements. Apparently, it's something beyond Blocks but I have not really understood the concept. Are there more texts about Elements? Much of the content presents only a series of settings. I am looking for more descriptions about how Elements relate to other concepts in the editor.
To me, it looks like settings in a Block for an individual page also affect the Element on that page. Or have I missed something?
I also have a hard time following the idea in the video about Layout Element Overview. Is there anything more text-based on this topic?
I appreciate any help.
Hi there,
It depends on what you're using.
Header element
https://docs.generatepress.com/article/header-element-overview/
This element allows you to create a Hero Section. It also allows you to merge the header and the page hero to achieve an overlaying navigation that hovers over page-hero.
Layout Element
https://docs.generatepress.com/article/layout-element-overview/
This element allows you to modify the layout. With this, you can control the content container width, sidebar display and remove some parts under it's "Disable Element" tab.
Hook Element
https://docs.generatepress.com/article/hooks-element-overview/
This element, from the name itself, allows you to hook your code to specific hooks within the theme, this is in tandem with our hook visual guide. https://docs.generatepress.com/article/hooks-visual-guide/ You can run shortcodes and PHP snippets inside this element.
Block Element
https://docs.generatepress.com/article/block-element-overview/
https://www.youtube.com/watch?v=pM_GVt3TYrs
This is GeneratePress' attempt on a page builder.
The long writeup I recommend you reading is this one. (aside from the docs)
https://generatepress.com/introducing-the-gp-theme-builder/
Not yet, but I will try to clear my personal cache.
Great, thank you Elvin. I will dive into all this stuff and hopefully be enlightened.
No problem. Feel free to ask if you have any further questions. :)