Skip to content

Instantly share code, notes, and snippets.

[lgc_column grid="33" tablet_grid="50" mobile_grid="100" last="false"]Row1Column1[/lgc_column]
[lgc_column grid="33" tablet_grid="50" mobile_grid="100" last="false"]Row1Column2[/lgc_column]
[lgc_column grid="33" tablet_grid="50" mobile_grid="100" last="true"]Row1Column3[/lgc_column]
[lgc_column grid="33" tablet_grid="50" mobile_grid="100" last="false"]Content_Row1Column1[/lgc_column]
[lgc_column grid="33" tablet_grid="50" mobile_grid="100" last="false"]Content_Row1Column2[/lgc_column]
[lgc_column grid="33" tablet_grid="50" mobile_grid="100" last="true"]Content_Row1Column3[/lgc_column]
[lgc_column grid="33" tablet_grid="50" mobile_grid="100"]Some content[/lgc_column]
[lgc_column grid="33" tablet_grid="50" mobile_grid="100"]Some content[/lgc_column]
[lgc_column grid="33" tablet_grid="50" mobile_grid="100" last="true"]Some content[/lgc_column]
@leohsiang
leohsiang / gist:26ddd6df68c67c7bc5f7ed9125563fe2
Last active July 29, 2017 16:32
Lightweight Grid Columns
[lgc_column grid="33" tablet_grid="33" mobile_grid="100" last="false"]picture 1 [/lgc_column]
[lgc_column grid="33" tablet_grid="33" mobile_grid="100" last="false"]picture 2[/lgc_column]
[lgc_column grid="33" tablet_grid="33" mobile_grid="100" last="true"]picture 3[/lgc_column]
if ( ! function_exists( 'generate_posted_on' ) ) :
/**
* Prints HTML with meta information for the current post-date/time and author.
*/
function generate_posted_on() {
if ( 'post' !== get_post_type() )
return;
$time_string = '<time class="entry-date published" datetime="%1$s" itemprop="datePublished">%2$s</time>';
if ( ! function_exists( 'generate_entry_meta' ) ) :
/**
* Prints HTML with meta information for the categories, tags.
*
* @since 1.2.5
*/
function generate_entry_meta()
{
$categories = apply_filters( 'generate_show_categories', true );
$tags = apply_filters( 'generate_show_tags', true );
@leohsiang
leohsiang / gist:39c2c432d7f7083d80b45ea6903b338f
Created May 19, 2018 22:00
All meta in one line except tags
/**
* CSS also required, see: http://generatepress.com/forums/topic/all-meta-in-one-single-line/#post-108079
*/
if ( ! function_exists( 'generate_posted_on' ) ) :
/**
* Prints HTML with meta information for the current post-date/time and author.
*/
function generate_posted_on() {
<!-- wp:generateblocks/container {"uniqueId":"5deb5034","paddingTop":"100","paddingRight":"30","paddingBottom":"30","paddingLeft":"30","bgImage":{"id":4123,"image":{"url":"https://gpsites.co/shop/wp-content/uploads/sites/73/shape-4.svg","height":22,"width":137,"orientation":"landscape"}},"bgOptions":{"selector":"pseudo-element","opacity":0.3,"overlay":false,"position":"right top 60px","size":"600px","repeat":"no-repeat","attachment":""},"innerZindex":1,"isDynamic":true,"blockVersion":2} -->
<!-- wp:generateblocks/grid {"uniqueId":"e1dc665b","columns":2,"horizontalGap":120,"verticalGapTablet":40,"horizontalAlignmentTablet":"center","isDynamic":true,"blockVersion":2} -->
<!-- wp:generateblocks/container {"uniqueId":"15509c86","isGrid":true,"gridId":"e1dc665b","width":50,"widthTablet":75,"widthMobile":100,"orderTablet":2,"orderMobile":2,"paddingTop":"0","paddingRight":"0","paddingBottom":"0","paddingLeft":"0","removeVerticalGapTablet":true,"removeVerticalGapMobile":true,"isDynamic":true,"blockVersion":2} -->
<!-