- This topic has 10 replies, 3 voices, and was last updated 4 months ago by
Leo.
-
AuthorPosts
-
September 9, 2020 at 5:44 pm #1437371
Carson
Hi, I’m excited to use GeneratePress and have launched right into version 3.0.0-alpha.3.
However, I am not able to understand how to customize my homepage?
I’d like to add a Featured Posts block underneath my primary navigation. I’d like it to be above both the Latest Posts (left side) and the Right sidebar.
Here’s an image of how this section looked on my prior theme: https://wp.me/a1P49C-5bD
How would I add something like this?
September 9, 2020 at 8:36 pm #1437432Leo
StaffCustomer SupportHi there,
You would need to create a block element for that:
https://docs.generatepress.com/article/block-element-overview/See the various hook you can use depending on where you want to add it:
https://docs.generatepress.com/article/hooks-visual-guide/#posts-pageLet me know if this helps š
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 10, 2020 at 7:49 pm #1438767Carson
Hi,
Yes, I’m part way there. I’ve placed it on a relatively private page for now: https://reasonsforgod.org/tools/
However, the spacing/padding is quite bad I think. How do I adjust the padding for just this block?
September 10, 2020 at 8:18 pm #1438778Elvin
StaffCustomer SupportHi Carson,
I see that you’re using GenerateBlocks for your Block Element. Awesome!
Here’s a demo video showing how to adjust spacing/padding for you GenerateBlocks container.
https://share.getcloudapp.com/Jru6Bv7wWhat happens here is we basically use the block navigation to select the container block and edit its padding through the Spacing Panel – https://docs.generateblocks.com/article/container-overview/#spacing
We then adjust the space between the grid columns by selecting the grid block and changing the Horizontal Gap value. – https://docs.generateblocks.com/article/grid-overview/#editing-our-grid-block
Let us know if it works for you.
A wise man once said:
"Have you cleared your cache?"September 22, 2020 at 3:05 pm #1454520Carson
Hi,
I’m not sure? When I go to Appearance > Elements > Featured Posts (which is what I’ve called this component), I don’t seem to see any of the settings that your video references?
Thanks for guiding me in the right direction!
September 22, 2020 at 3:07 pm #1454524Leo
StaffCustomer SupportThe links Elvin pointed out are GenerateBlocks settings so you need to click on the block element content itself to see those settings.
If this doesn’t help, can you provide the dashboard login to the site and we can go in and take a couple of screenshots?
You can use the private info box.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 22, 2020 at 6:02 pm #1454623Carson
Hi,
I don’t understand the suggestion to use GenerateBlocks here? I think I have to use the Elements feature because I want this to:
a) display on all posts and pages
b) display above the post and sidebarYou can see here: https://reasonsforgod.org/tools/
That there are now two similar blocks.
The one that is within the post itself is not what I want.
The larger one, above the post and the sidebar, is what I am trying to style with better padding.
Thanks for your guidance as I try to make sense of this…
September 22, 2020 at 6:03 pm #1454626Carson
Sorry, I just want this element to display on the homepage, not on all posts and pages.
September 22, 2020 at 6:36 pm #1454639Elvin
StaffCustomer SupportI donāt understand the suggestion to use GenerateBlocks here? I think I have to use the Elements feature because I want this to:
a) display on all posts and pages
b) display above the post and sidebarThe block suggestions were solely for creating the layout. Which should be done inside the Block Element.
That there are now two similar blocks.
The one that is within the post itself is not what I want.
The larger one, above the post and the sidebar, is what I am trying to style with better padding.
You can remove the one inside the post/page and focus on the Block Element.
Sorry, I just want this element to display on the homepage, not on all posts and pages.
You can set the Display rule for your Block Element.
https://share.getcloudapp.com/bLuRX2O5Set it to
Front Page
so it only displays on your homepage.:)A wise man once said:
"Have you cleared your cache?"November 7, 2020 at 6:50 pm #1522116Carson
Hi,
I’m still struggling. Sorry.
On this page:
https://reasonsforgod.org/tools/* The “Featured Posts” text isn’t centered.
* There’s massive padding between that text and the featured posts
* The image sizing isn’t the same. The one of the left is a little ‘taller’ than thee others.Thanks for helping me sort this out. I really appreciate it.
November 8, 2020 at 9:55 am #1522814Leo
StaffCustomer SupportHi there,
* The āFeatured Postsā text isnāt centered.
* Thereās massive padding between that text and the featured postsTry using the headline block from GenerateBlocks. Then it would allow you to set the alignment and control the margin/padding:
https://docs.generateblocks.com/article/headline-overview/#alignment
https://docs.generateblocks.com/article/headline-overview/#spacing* The image sizing isnāt the same. The one of the left is a little ātallerā than thee others.
The image block from WordPress doesn’t allow you to set the size. But you can edit the actual media so they are the same size or ratio.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.