Archived topic
Can pseudo section be created?
3 replies · Started by Patricia on December 29, 2021
I have a client who does not want to use blocks. She is adamant about that. So I am using the Classic Editor plugin. Before you removed Sections, it would have been simple to create a section in the middle of the content with a background that was full width and text maintaining the container width. Is there a way to create an area that previously could have been a section using CSS?
GP 3.1.0
Premium 2.1.1
Hi there,
You would need to set the content container to full width:
https://docs.generatepress.com/article/content-container/#full-width
Then use custom HTML like:
<div class="full-width-section">
text here
</div>
and CSS;
.full-width-section {
background-color: #000;
}
Or you can try Tom's solution here:
https://generatepress.com/forums/topic/previous-latest-gpp-version-1-12-3/#post-1754467
Hope this helps :)
I tried Tom's solution and it worked perfectly!
Glad to hear :)