Archived topic
Scribe theme home page
26 replies · Started by Christiano on September 22, 2022
Here's the article with regards to Block Element - Hook: https://docs.generatepress.com/article/block-element-hook/
More or less, you just need to create a Block Element - create the design you want through GenerateBlocks, and add a WP Search Block as well.
Here's a short screen recording I made as a very basic example on how to create one: https://share.getcloudapp.com/OAuj4zgY
Hi Fernando, thanks for your suggestions!
I created a block element and I choose to show it in the home page. The problem is that it's not showing...
What can I done wrong?
THANKS! 🤗
I see. Can you provide temporary admin login credentials to your site, and we'll check what's causing the issue?
Please use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
You already have access to my site as I created an user for you.
I do not have the user+password right now, can you look in the support thread?
THANKS!
I see. However, it was provided from a previous thread that's already marked resolved. By default Private Replies are removed from the thread once resolved. We no longer have access to your site.
Once you get the chance to check, can you share the credentials here as well?
Sure, here they are...
I've created two elements for my home page:
- Banner Agenda
- Sezione RICERCA
They do not show up... 😞
You didn't choose a hook for your element:
https://www.screencast.com/t/IOx8etF6ml2
Depending on where you want it to be, check this visual hook guide:
https://docs.generatepress.com/wp-content/uploads/2018/07/hooks-postspage.png
Hi Ying, that was not the problem as in the other block elements I correctly choosed a custom hook name and set a priority.
It doesn't work... What could be the problem?
THANKS! 🤗
Hi there,
You can't create a custom hook name without that hook actually existing in the theme.
For example, you've chosen banner_agenda as a custom hook name, but that hook does not exist in the theme (so it won't display).
Instead, choose an existing hook name. For example, if you want it below the header, choose the after_header hook. This will display the Element after the header.
You can refer to the existing Elements on the page to see where they're hooked in to, and you can use the same hooks with different priorities to add your new Elements above or below the existing ones.
Hope this helps!
Hi Tom, this definitely help! 👍🏼
Now I understand because the content doesn't show up.
Now all perfectly works.
THANKS A LOT! 🤗
No problem! :)