Archived topic
How to understand and perform exatctly when builidng the websites
5 replies · Started by Paul on August 5, 2021
Hello there,
I am always puzzled to how to choose element type when building the website.
so, what ways to understand and perform them exactly? can give some explanations by your words or the documents.
in fact, i checked the documents from you and not understand fully.
but i think this element is very powerful for building the website.
thanks in advance
paul
Hi Paul,
I'd recommend reading these first:
For Header Element:
https://docs.generatepress.com/article/header-element-overview/
For Block Element:
https://docs.generatepress.com/article/block-element-overview/
https://generatepress.com/introducing-the-gp-theme-builder/
For Layout Element:
https://docs.generatepress.com/article/layout-element-overview/
For Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
And try watching videos from our official YouTube page. (atleast the most recent ones from 4-6 months ago)
https://www.youtube.com/channel/UCoHk-JZFs1N-iI2DQlIKVnA
These things cover most of the features. If some parts are unclear, you can always come back here and ask us. :D
Hi Elvin,
Thanks for your reply.
Checked them again.
1/ Header Element - this one is only for header , maybe the header is below or before the navigation menu - maybe merge, maybe not merge for the header and the navigation menu
the content we're inserting to the content is only text content or shortcode, or CSS code.
2/ Block Element: - this one is much powerful and it controls the content for the headers, sidebard, and also the hook ,
this one includes or replace the Header Element.
the special feature is using generatepress block, the content we're inserting to the content is only text content or shortcode, not CSS code.
3/ Layout Element - this one is simple and just control the content from siderbard, footer
4/ Hook Element - this one is simple adn just insert any content to any postion on the website.
the content is not only CSS code , but also the text content
so how about my understanding , pls give some comments
thanks for your help
paul
Hi there,
1. Header Element - can be replaced by the Block Element ( if you're a Block editor user ). It still has its place for creating merged headers, and can be used for JUST that. It will merge with any content that comes after the site header.
We'll be introducing this featured in other elements at a later date.
2. Layout Elements, with the addition of the Content Width option provide the same features as the Layout and Disable Elements Meta Boxes in the Post editor. But the Display Rules provides better workflow and access to templates that are not editable eg. Archives, Search Results, 404s etc.
3. Block Elements - yep, these are the future for Block editor users, and they have access to ALL Hooks in theme ( and plugin ) templates. So no limitation on where you can add that content.
4. Hooks allow for PHP Execution ( if your server permissions allow that ) which cannot be done in the other elements. One of the main uses is for adding scripts such as Google Analytics to your site.
Note regarding CSS. It can be added to Block Elements if you include a HTML Block in the content. But its best to keep CSS in a style sheet or additional CSS.
hi david
thanks for your reply
you always give me the "surprised"reply. i already know them better and better
have a nice day and stay safe
paul
Glad we could be of help!