This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#---------------------------------------- | |
# This Git ignore should be located | |
# in your WordPress install's wp-content/ | |
# directory. | |
#---------------------------------------- | |
#--------------------------- | |
# WordPress general | |
#--------------------------- | |
/index.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add the following to a theme's functions.php file. | |
*/ | |
function example_enqueue_block_variations() { | |
wp_enqueue_script( | |
'frost-enqueue-block-variations', | |
get_template_directory_uri() . '/assets/js/variations.js', | |
array( 'wp-blocks', 'wp-dom-ready', 'wp-edit-post' ) | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// check if the flexible content field has rows of data | |
if( have_rows('layout') ):?> | |
<!-- // loop through the rows of data--> | |
<?php while ( have_rows('layout') ) : the_row();?> | |
<?php if( get_row_layout() == '1_column' ):?> | |
<section class="section headline-content"> | |
<div class="grid-container"> | |
<div class="grid-x grid-margin-x"> | |
<div class="large-12 cell"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Flexbox on WooCommerce archive products */ | |
.woocommerce .products ul, | |
.woocommerce ul.products { | |
display: flex; | |
flex-flow: row wrap; | |
} | |
.woocommerce ul.products li.product, | |
.woocommerce-page ul.products li.product { | |
display: flex; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* =WordPress Core - Sassified. | |
-------------------------------------------------------------- */ | |
.alignnone { | |
margin: 5px 20px 20px 0; | |
} | |
.aligncenter, div.aligncenter { | |
display: block; | |
margin: 5px auto 5px auto; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Column Classes | |
Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css | |
--------------------------------------------- */ | |
.five-sixths, | |
.four-sixths, | |
.one-fourth, | |
.one-half, | |
.one-sixth, | |
.one-third, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Add Extra Comment Fields | |
Plugin URI: http://pmg.co/category/wordpress | |
Description: An example of how to add, save and edit extra comment fields in WordPress | |
Version: n/a | |
Author: Christopher Davis | |
Author URI: http://pmg.co/people/chris | |
License: MIT | |
*/ |