Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

Any gallery-related CSS should have additional selectors added to target images in the following structure in both the editor and front end

<figure class="wp-block-gallery blocks-gallery-grid has-nested-images columns-default is-cropped">
	<figure class="wp-block-image size-large">
		<img
			src="https://localhost/image1"
			alt="Image gallery image"
			class="wp-image-71"
		/>
	</figure>
	<figure class="wp-block-image size-large">
		<img
			src="https://localhost/image2"
			alt="Image gallery image"
			class="wp-image-70"
		/>
	</figure>
</figure>
Source by wpthemego.com #
 
PREVIOUS NEXT
Tagged: #Any #CSS #additional #selectors #added #target #images #structure #editor #front
ADD COMMENT
Topic
Name
5+2 =