Skip to content

Instantly share code, notes, and snippets.

View temazinkin's full-sized avatar

Tema Zinkin temazinkin

View GitHub Profile
@temazinkin
temazinkin / functions.php
Created March 21, 2016 21:54 — forked from jameskoster/functions.php
WooCommerce - Change number of products per row
// Change number or products per row to 3
add_filter('loop_shop_columns', 'loop_columns');
if (!function_exists('loop_columns')) {
function loop_columns() {
return 3; // 3 products per row
}
}
@temazinkin
temazinkin / wp-signup.php
Created September 29, 2015 14:04
Signup page
<?php
// All stuff from wp-signup.php
// WordPress 4.1
function selena_network_show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) {
$current_site = get_current_site();
// Blog name
echo '<div class="form-group">';
if ( !is_subdomain_install() )
echo '<label for="blogname" class="control-label">' . __('Site Name:') . '</label>';
/**
* VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units
*
* To overcome this, create media queries that target the width, height, and orientation of iOS devices.
* It isn't optimal, but there is really no other way to solve the problem. In this example, I am fixing
* the height of element `.foo` —which is a full width and height cover image.
*
* iOS Resolution Quick Reference: http://www.iosres.com/
*/