Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kaskad88/1a55dbe405353482cd3a36473a65872b to your computer and use it in GitHub Desktop.
Save kaskad88/1a55dbe405353482cd3a36473a65872b to your computer and use it in GitHub Desktop.
add_filter( 'jet-engine/listing/grid/arrow-icons/options', function ( $options ) {
$options['my_icon'] = __( 'My icon', 'text-domain' );
return $options;
} );
add_filter( 'jet-engine/listing/grid/arrow-icon/my_icon', function ( $icon ) {
$icon = '<svg viewBox="0 0 179 179" xmlns="http://www.w3.org/2000/svg"><path transform="scale(0.1,-0.1) translate(0,-1536)" d="M909 141l102 102q19 19 19 45t-19 45l-307 307l307 307q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-454 -454q-19 -19 -19 -45t19 -45l454 -454q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5
t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /></svg>';
return $icon;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment