Skip to content

Instantly share code, notes, and snippets.

@beckysoll
beckysoll / template.html
Created November 15, 2017 19:23
using infinite scroll in a statamic collection/entries loop
{{ entries limit='6' paginate='true' as='articles' }}
<div class="items-wrap">
{{ if show_title=='true' }}
<h2 class="group-title"><a href="{{ url }}">{{ title }}</a></h2>
{{ /if }}
<div class="items">
{{ articles }}
@ollietreend
ollietreend / acf-php-to-json.php
Last active August 28, 2025 05:42
Convert Advanced Custom Fields Pro configuration from PHP to JSON.
<?php
/**
* Plugin Name: Convert ACF PHP to JSON
* Description: Convert Advanced Custom Fields Pro configuration from PHP to JSON.
*/
namespace ConvertAcfPhpToJson;
/**
* Add submenu item under 'Custom Fields'
@pburtchaell
pburtchaell / styles.css
Last active February 12, 2025 08:45
VH and VW units can cause issues on iOS devices. To overcome this, create media queries that target the width, height, and orientation of iOS devices.
/**
* VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units
*
* To overcome this, create media queries that target the width, height, and orientation of iOS devices.
* It isn't optimal, but there is really no other way to solve the problem. In this example, I am fixing
* the height of element `.foo` —which is a full width and height cover image.
*
* iOS Resolution Quick Reference: http://www.iosres.com/
*/