-
·
Combining theme.json
Saved as a php file in the mu-plugins folder each part must exsist in the styles folder:
-
·
Shortcode hook
Then add a shortcode:
-
·
Loading a plugin pattern with block binding in a shortcode
Was having trouple loading a pattern in an ACF Block it was unable to get the block bindings before loading the block that was calling the pattern. Using a shortcode to call the pattern seem to fix this and brings the pattern in with the block bindings working: Shortcode function: Files are saved in the…
-
·
Block binding shortcode
The idea was to use an ACF field in a block that would then output it’s contents in different formats; a heading, paragph or image. We did this as and ACF block as well. Example of how to use: Function: ACF block Block template: The blocks is assigned the 4 ACF fields with ‘image alt’…
-
·
Property Features Block
2 Bedrooms 1 Bathroom 2 Receptions 2 Cloakrooms Attached Garages Gardens Front and Rear EV Charging Solar Panels Sustainable New Build House Battery Heat Pump Owl Bat Paw Flower
-
·
The Icon Block, ACF SVG Icon Block, and Media PHP
The Icon Block: default icons (Examples): The Icon Block: additonal icons: (Note: these haven’t been sized to be square) The Icon Block: additonal icons property The Icon Block: Styling Options Flip vertical and/or horizontal Rotate Width, Margin, Padding, Border (radius, stroke, colour), Icon colour and Background Colour square icons work in a circle None square…
-
·
Ollie Patterns
EPisode 20 now streaming! SpaceCraft, a brand new podcast for creators by creators Inspiring and informing creators through authentic conversations, insights, and stories. Hosted by: Margo Middleton FutureStack Michael Portis Fortune5 Season One SpaceCraft A podcast for creative folks Available on all popular platforms: Apple Spotify Overcast YouTube Google RSS ★★★★★ Rated 5 stars Apple…
-
·
Default Gallery
Link: Media File (Jetpack creates the lightbox when plugin is on) Link: Attachment Page (Jetpack creates the lightbox when plugin is on)
-
·
Font sizes in theme.json
Think I like: Notes: Default spacing is off if your theme is not overriding it. 2024 Theme: Notes: min(1.5rem, 2vw); means whatever is smaller 1.5rem or 2vw, so after viewport width is bigger than 1200 the measurement is 1.5rem as there are 6 steps the vars are: Ollie Theme: Notes: Names make more sense here:…
-
·
Spacing in theme.json
Content and wide settings Other examples: Default spacing amounts Default settings: Notes: Default spacing is off if your theme is not overriding it. 2024 Theme: Notes: min(1.5rem, 2vw); means whatever is smaller 1.5rem or 2vw, so after viewport width is bigger than 1200 the measurement is 1.5rem as there are 6 steps the vars are:…