- This topic has 11 replies, 2 voices, and was last updated 3 years, 6 months ago by
Fernando.
-
AuthorPosts
-
October 24, 2022 at 9:07 pm #2384814
Shangxiao
Hi Admin,
I want to show the category page in the frontpage like this:
images and buttons on them. just like this sample: insanelygoodrecipes.comCould you help me with this?
Thanks
October 24, 2022 at 9:12 pm #2384819Fernando Customer Support
Hi Shangxiao,
The reference site is showing the Blog Page as the Front Page.
Are you referring to the top section of this page?
Can you expound a bit more?
Let us know.
October 24, 2022 at 9:39 pm #2384836Shangxiao
Hi Fernado,
This part: https://ibb.co/JxpgvQT
October 24, 2022 at 9:49 pm #2384843Fernando Customer Support
I see. You can use a Block Element – Hook. Hook it to
after_header. Reference: https://docs.generatepress.com/article/block-element-hook/Then, use GenerateBlocks to create such a section.
Here’s an instructional video you may refer to to learn hot to use GenerateBlocks: https://www.youtube.com/watch?v=R7fwJECtgSg
Basically, you’ll need a 3-column GenerateBlocks Grid Block for that. Then, add images for the background, and then add a GenerateBlocks Button block. Give the Buttons Block an equivalent top and bottom margin to center the button vertically.
October 25, 2022 at 9:46 pm #2386725Shangxiao
Hi Fernando,
It works, here is a new question:
I do as you said: Give the Buttons Block an equivalent top and bottom margin to center the button vertically
But the button couldn’t keep the position if I changed the page’s size
https://ibb.co/fpthz2r
https://ibb.co/ggVv1YwOctober 25, 2022 at 10:14 pm #2386762Fernando Customer Support
Horizontally speaking, the Button Wrapper should just be center aligned through the Toolbar.
Are you adding left and right paddings? If so, remove this, and just align it center.
October 25, 2022 at 10:36 pm #2386788Shangxiao
Hi Fernado,
I only find the left and right align button center, not up and down
October 25, 2022 at 10:42 pm #2386798Fernando Customer Support
To clarify, are you not seeing this setting?: https://share.getcloudapp.com/8Lu1EDEL
Can you make sure it’s center aligned, and the Container is center aligned as well.
October 25, 2022 at 10:48 pm #2386807Shangxiao
yes, but I want the button also up and down align center
October 25, 2022 at 10:50 pm #2386812Shangxiao
Hi Fernando,
I found a solution, thanks for your help.
October 25, 2022 at 10:50 pm #2386813Shangxiao
thank you
October 25, 2022 at 10:51 pm #2386815Fernando Customer Support
I see. Glad you got it fixed! You’re welcome Shangxiao!
-
AuthorPosts
- You must be logged in to reply to this topic.