- This topic has 8 replies, 3 voices, and was last updated 1 year, 6 months ago by David.
January 31, 2021 at 1:35 pm #1640866Sonja
I have build a site based on the marketer theme.
Now I want a full width area above the normal post. In this area i want to put a table (i have a plugin for the table).
I have put a URL in the field for an example of what i want to do. There you can see the table and then comes the normal post with sidebar.
Is this possible? Maybe with Generateblocks?January 31, 2021 at 5:14 pm #1640982ElvinStaffCustomer Support
I’m not sure I fully understand what you mean.
To clarify: Do you want it to be a page hero section that appears after the header, on top of the content and the sidebar?
Also, are you using a shortcode for the table?
If so, you can use the Header Element to place your shortcode, set the header element to full width and set the display rule to “post – all post” so it only applies to normal posts.
More about Header Element here:
Alternatively, you can use a Block Element hooked to
generate_after_contentand place your table’s shortcode on a shortcode code block placed inside GB’s Container block that is set to full width. You then set the display rule location to “post – all post” so it only applies to normal posts.
More about Block Element here:
A wise man once said:
"Have you cleared your cache?"February 1, 2021 at 12:22 am #1641182Sonja
yes the table should be after the header, on top of the content and the sidebar, like on the example page.
And yes, I am using a shortcode for the table.
But I want this only for some specific posts. Not for all.February 1, 2021 at 12:36 am #1641196ElvinStaffCustomer Support
You can use the Block Header to place your shortcode in.
You then set it to
generate_after_headerso it shows after the header.
As for specifying which post it would appear, you can specify that on the Display Rule Location of the Block Element. https://docs.generatepress.com/article/block-element-overview/#display-rules
A wise man once said:
"Have you cleared your cache?"February 6, 2021 at 6:04 am #1647984Sonja
I have tested this, but it does not work the way i want. The Area above the content is full witdh. But i should sit in the area, where the bog post is.February 6, 2021 at 6:13 am #1647995Sonja
Ok, now i have used a GB Block with Inner container contained witdh. But then the width is like the text, not like the white space in which the blog post sits.
Maybe this is to complicate.
I can not publish the post in this form, it is still a draft.February 6, 2021 at 7:07 am #1648242DavidStaffCustomer SupportFebruary 6, 2021 at 8:12 am #1648297Sonja
Yes, but on my site, the posts, pages and sidebar are in a white area. And the Block element I am trying to build is not in such a white space.
I have insert the url, so you can see the white areas.February 6, 2021 at 8:16 am #1648302DavidStaffCustomer Support
So the Container should be the same width as the site content ? And have a white background ?
Set the Container Blocks width to Contained so its background only fills the width of the site container. Then give the block some top and bottom margin to create the space between it and the content.
- You must be logged in to reply to this topic.