To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
| // Remove WooCommerce Theme Support admin message | |
| add_theme_support( 'woocommerce' ); |
| <?php | |
| // first, get the image object returned by ACF | |
| $image_object = get_field('my_image_field'); | |
| // and the image size you want to return | |
| $image_size = 'thumbnail'; | |
| // now, we'll exctract the image URL from $image_object | |
| $image_url = $image_object['sizes'][$image_size]; |
| <?php | |
| add_filter( 'genesis_attr_content', 'yoast_schema_empty', 20 ); | |
| add_filter( 'genesis_attr_entry', 'yoast_schema_event', 20 ); | |
| add_filter( 'genesis_attr_entry-title', 'yoast_itemprop_name', 20 ); | |
| add_filter( 'genesis_attr_entry-content', 'yoast_itemprop_description', 20 ); | |
| add_filter( 'genesis_post_title_output', 'yoast_title_link_schema', 20 ); | |
| /** | |
| * We'll use the post info output to add more meta data about the event. |
| <?php | |
| /* | |
| Term Archive Pages: | |
| - http://example.com/recipes/dinner/ | |
| - http://example.com/recipes/breakfast,brunch/ | |
| Single Recipe Pages: | |
| - http://example.com/recipes/dinner/soup-title/ |
| <?php | |
| /** | |
| * Set & read cookie for age-check in a Genesis child theme. On first visit to the site (any page) | |
| * visitors are redirected to the page /age-check/. The age check page uses a custom page template | |
| * containing part of the code here. The first two functions "set_newuser_cookie()" | |
| * and "cur_page_url()" should go in your functions file. | |
| * The code below that is for your custom page template. | |
| * | |
| * @author Pat Ramsey | |
| * |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
| <?php | |
| /* Template Name: Home */ | |
| global $post; | |
| global $handlebars; | |
| wp_enqueue_script( 'jquery' ); | |
| wp_enqueue_script( 'handlebars', | |
| get_bloginfo( 'stylesheet_directory' ) . '/js/handlebars.js', |
| <?php | |
| /* | |
| * Converts CSV to JSON | |
| * Example uses Google Spreadsheet CSV feed | |
| * csvToArray function I think I found on php.net | |
| */ | |
| header('Content-type: application/json'); | |
| // Set your CSV feed |
| <?php | |
| /** | |
| * Convert a comma separated file into an associated array. | |
| * The first row should contain the array keys. | |
| * | |
| * Example: | |
| * | |
| * @param string $filename Path to the CSV file | |
| * @param string $delimiter The separator used in the file | |
| * @return array |