Archived topic
tasty theme white spaces
8 replies · Started by Ruth on November 12, 2021
Hi - have just installed the "tasty" theme - staging.textilejunkies.com - I want to develop the pages so they have blocks with background colour spaces between (like the home page)
So each new block - text then image is in a white background but between the blocks there is the background colour. Hope this makes sense??
Hi Ruth,
Are you trying to make something like this?
https://www.screencast.com/t/iBy258CcZnR
It's kinda of tricky depends on what kind of block you use in the page, give this CSS a try:
.page .inside-article {
background-color: transparent;
}
.page .inside-article .entry-content > *:not(.wp-block-image) {
background-color: #ffffff;
padding: 40px;
}
Hi Ying - Thanks, that works. Just wondering if its possible to restrict this option to certain pages?
Hi there,
there is the Simple CSS plugin:
https://en-gb.wordpress.org/plugins/simple-css/
It provides a CSS Meta box in the Post editor, so you can add CSS to just the post/page you want it applied to.
Hi david - thanks for info about plugin. The site wide option is working well but useful to know about the plugin. BTW just noticed the "favorite" option on the support ticket. How does that work? - can I group together all my support tickets? Would be great!
If you click the Forum Profile button ( at the top of this page ), you can see all your topics, replies and any Favourites you have tagged.
Excellent! BTW will that CSS Ying gave me work on any theme or just "tasty"?
That CSS is generic - it will apply to any site from the library where it is applicable :)
Great