Archived topic
How to add section in homepage
5 replies · Started by Fajri on May 26, 2021
Hi, i'm using site library as style in Generatepress.
How to add this section on homepage ?
Pict : https://prnt.sc/13g0qlw
Live site : rumuspintar.com
Hi there,
You can replicate those sections using grid and containers from GenerateBlocks:
https://wordpress.org/support/plugin/generateblocks/
https://docs.generateblocks.com/article/grid-overview/
https://docs.generateblocks.com/article/container-overview/
I see, the site not use generablock plugin to add layout.
Do you tutorial how to add section using hook ?
Hi Fajri,
By default, there's no hooks within a static page's content so we can't simply hook things into a specific part of it.
But we can make our place hooks within the page's content if necessary.
Check the shortcode I've written here.
https://generatepress.com/forums/topic/inserting-custom-php-html-into-gutenberg-or-site-container/#post-1713422
You can place this shortcode within your page's content. That particular shortcode placed will serve as a hook.
I think, the site using marketer site library.
The owner add section like widget on the top of content area.
I mean, that is dynamic content
That doesn't look like it's added as a hook from what we can see.
It's only appearing on the home page as well so there isn't a point using a hook.
Just add it as the first section on the home page should work.
The section is created with custom HTML and CSS - you can use the browser inspector tool to see exactly how it's done.
I'd say that using GB would be the easier option.