Archived topic
How to remove site-content from Generateblocks created pages e.g. Home page
7 replies · Started by Pankaj on August 21, 2022
How to remove site-content from Generateblocks created pages e.g. Home page
Can any support guy help me with this? I want to remove content and want to show only elements on home page or other pages I am creating using Generateblocks.
Hi there,
The site-content div is a default theme structure and is required for things to work properly.
I can't see why you would need to remove it?
Hello,
I want to get rid of this space: https://prnt.sc/IyoLQlMjXj4P
As Leo mentioned, that section is part of the theme-structure, however, if you wish to remove it, you can try this CSS:
.inside-article {
display: none;
}
Hello,
This code will remove it from all the pages. I have blog section too.
I see. You can add it through a Hook Element instead:
<style>
.inside-article {
display: none;
}
</style>
Hook it to wp_head. Set the display rules to your preference.
Hello,
The last reply solved the issue.
You’re welcome Pankaj!