Just pull down and release to jump between pages.
A Pen by Fabrizio Bianchi on CodePen.
<h1><a href="//developer.mozilla.org/en-US/docs/Web/CSS/object-fit">object-fit</a></h1> | |
<h2>(original image)</h2> | |
<img src="//goo.gl/njQhWF" alt="Pier"> | |
<h2>fill</h2> | |
<img class="object-fit_fill" src="//goo.gl/njQhWF" alt="Pier"> | |
<h2>contain</h2> | |
<img class="object-fit_contain" src="//goo.gl/njQhWF" alt="Pier"> |
This is a 5-minute crash course to start using vagrant. We will host our vagrant files in /home/USER/vms
. That's
my convention working with many vagrant machines.
vagrant: https://docs.vagrantup.com/v2/installation/
virtualbox: https://www.virtualbox.org/wiki/Downloads
/*PUT THIS IN YOUR CHILD THEME FUNCTIONS FILE*/ | |
/*STEP 1 - REMOVE ADD TO CART BUTTON ON PRODUCT ARCHIVE (SHOP) */ | |
function remove_loop_button(){ | |
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); | |
} | |
add_action('init','remove_loop_button'); | |
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
<?php | |
/* | |
Plugin Name: woocommerce modal variationn | |
Plugin URI: # | |
Description: show modal window with product variations after clicking -add to cart-. | |
Version: 0.1 | |
Author: Maks Buriy | |
Author URI: mailto:[email protected] | |
License: GPL2 | |
*/ |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
<?php | |
if ( is_singular('product') ) { | |
global $post; | |
// get categories | |
$terms = wp_get_post_terms( $post->ID, 'product_cat' ); | |
foreach ( $terms as $term ) $cats_array[] = $term->term_id; |