- This topic has 26 replies, 4 voices, and was last updated 1 year, 6 months ago by Tom.
-
AuthorPosts
-
September 30, 2022 at 5:48 am #2358734Fernando Customer Support
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
October 3, 2022 at 12:55 am #2361153ChristianoHi 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! π€
October 3, 2022 at 1:07 am #2361164Fernando Customer SupportI 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
October 4, 2022 at 1:09 am #2362356ChristianoYou 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!
October 4, 2022 at 1:32 am #2362383Fernando Customer SupportI 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?
October 4, 2022 at 2:09 am #2362410ChristianoSure, here they are…
October 4, 2022 at 3:56 am #2362489ChristianoI’ve created two elements for my home page:
– Banner Agenda
– Sezione RICERCAThey do not show up… π
October 4, 2022 at 10:08 am #2363055YingStaffCustomer SupportYou didn’t choose a hook for your element:
https://www.screencast.com/t/IOx8etF6ml2Depending on where you want it to be, check this visual hook guide:
https://docs.generatepress.com/wp-content/uploads/2018/07/hooks-postspage.pngOctober 5, 2022 at 2:49 am #2363819ChristianoHi 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! π€
October 5, 2022 at 9:32 am #2364331TomLead DeveloperLead DeveloperHi 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!
October 6, 2022 at 12:21 am #2364852ChristianoHi Tom, this definitely help! ππΌ
Now I understand because the content doesn’t show up.
Now all perfectly works.
THANKS A LOT! π€
October 6, 2022 at 6:29 pm #2365745TomLead DeveloperLead DeveloperNo problem! π
-
AuthorPosts
- You must be logged in to reply to this topic.