You’ll find what you’re looking for under the style tab of the both the Gallery and individual image block settings: https://wordpress.org/documentation/article/gallery-block/#block-settings
Thanks James but my UI only shows Color > Background in the Styles tab.
Safari Version 17.6 (18618.3.11.11.7, 18618)
Maybe you are running 6.3?
I just upgraded to 6.6.1. It is missing.
Can someone verify that the Style setting for Gallery image padding is visible in WP 6.6.1?
I need to be able to adjust the padding on this page only. When I added code to the Customize section it changed all of the gallery images accross the board
Here’s the link.
Where can I put code to modify this and what might the code be? i wish i could figure this out on my own :-/. They should put that feature back.
-
This reply was modified 1 year, 7 months ago by
James Huff. Reason: redundant link removed
It’s in 6.6.1, that’s what I’m running and what the doc is referring to.
Style on the Gallery Block gives you block spacing.
Style on an image inside of a Gallery Block gives you border size.
OK, something is wrong with my installation. Like I said, there is no UI for Block spacing you are indicating. I have deactivated WP Optimise plugin as well to no avail. Does anyone know why this Padding UI is being nixed from my setup?
Very weird.
Would you please provide a full screenshot of what you’re seeing instead?
https://wordpress.org/support/forum-user-guide/block-editor/#adding-screenshots
How would I add a code snippet that would only affet this page and not every other portfolio page?
EXAMPLE:
.gallery-item, img {
padding-bottom: 60px;
padding-right: 30px;
padding-left: 60px;
}
You’re in the site editor.
Edit the post or page in question instead.
The post/page editor sometimes operates differently than the site editor.
In the post/page editor in WordPress 6.6.1, this is what you’ll see for the Gallery Block: https://cloudup.com/cZCC6oUwvjX
And, this is what you’ll see for the Image Block: https://cloudup.com/ca5BMmoaJAk
Sorry, I was thrown off a bit there.
Why are all of your icons missing in the top bar and the block’s top bar?
I also wonder if you’re limited by placing the whole gallery inside of a columns block. Do you get the options you’re looking for if the gallery block is outside of the columns block or outside of the group block entirely?
Here’s the list view on my example from before: https://cloudup.com/cPGF41CVMRh
My only other guess is it’s one of your two active portfolio post type plugins causing the problem.
Does not make a difference if I drag the gallery to the root layer or other layer. I experimented by turning off the plugins. Something is interfering with that code. I wish WordPress tech team that wrote this code could chime in.
This is what is running in the “additional CSS” section of the Site Editor:
I wonder if there is a way to override that Page-template-page-portfolio #content code. Maybe that is screwing it up. it is necessary for my site to have that code
.type-page div#section-entry-respond {
display: none;
}
.page-template-page-portfolio #content .jn-media-width, .blog #content .jn-media-width {
max-width: none !important;
margin-left: -50px;
margin-right: -50px;
margin-top: -50px;
} footer ul li {
margin-top: 7px !important;
}
@media screen and (min-width: 721px) {
.nav-horizontal .entry-menu ul.sub-menu {
width: 230px;
text-align: left;
padding: 10px 10px !important;
}
.sidebar-top.nav-horizontal #sidebar div.section.sub .entry-menu ul.sub-menu li.menu-item a:hover {
background-color: black;
}
CSS won’t remove whole sections of the editor.
Are you sure that you’re on WordPress 6.6.1?
The fact that your editor is so dramatically different from a base unmodified fresh copy of WordPress 6.6.1 isn’t really suggesting to me that there’s a problem in WordPress, it’s suggesting to me that there’s a problem with your install (modified core files?), your plugins, or your theme (theme functions can interfere with the editor like plugins).