This file contains 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
<div class="case-studies"> | |
<div class="case-studies__item case-studies__item bg-accent-light"> | |
<a href="#" class="case-studies__link"> | |
<img src="one.png" class="case-studies__image" alt=""> | |
<h1 class="text-xxl">One</h1> | |
</a> | |
</div> | |
<div class="case-studies__item"> | |
<a href="#" class="case-studies__link"> | |
<img src="two.png" class="case-studies__image" alt=""> |
This file contains 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
.case-studies { | |
&__item { | |
&--featured { | |
} | |
} | |
&__link { | |
} | |
&__image { |
This file contains 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 $upgrading = time(); ?> |
This file contains 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
#!/bin/bash | |
# Save script, run chmod +x on it, then... | |
# Usage: ./distribute_user.sh [username] [role] | |
ARGS="$@" | |
echo "Adding user $1 as $2 to all sites" | |
SITES=$(wp site list --field=url --format=csv) | |
for site in $SITES |
This file contains 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 | |
/** | |
* Get Google reviews by place ID. | |
* | |
* @param $google_place_id Google place ID. | |
* | |
* @return void | |
*/ | |
function kanuka_get_google_reviews( $google_place_id ) { |
This file contains 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
/* | |
Theme Name: Kanuka Digital | |
Theme URI: https://www.kanukadigital.com/ | |
Author: Kanuka Digital | |
Author URI: https://www.kanukadigital.com/ | |
Description: Example child theme. | |
Version: 1.0.0 | |
Template: parent-theme | |
*/ |
This file contains 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 | |
/** | |
* Add classes to subcategory images. | |
* | |
* @param $category | |
*/ | |
function kanuka_category_custom_thumbnail( $category ) { | |
$output = ''; | |
ob_start(); | |
woocommerce_subcategory_thumbnail( $category ); |
This file contains 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 | |
/** | |
* Add a class to tags. | |
* | |
* @param string $html The HTML content. | |
* @param array $tags List of HTML tags to add a class to. | |
* @param string $class The class to add. | |
* @param bool $exception Optional. If the exception value has been defined, it'll take precedence. | |
* | |
* @return array|string|string[]|null |
This file contains 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 | |
/** | |
* Filter Jetpack widget visibility page list - include all pages, not just those which are published. | |
* | |
* @param stdClass[] $pages Array of objects containing only the ID, post_parent, and post_title fields. | |
* @param array $parsed_args Array of get_pages() arguments. | |
*/ | |
function iweb_jetpack_widget_visibility_get_pages( $pages, $parsed_args ) { | |
global $wpdb; |
This file contains 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 | |
/** | |
* Yoast SEO breadcrumbs - link directly to child page when the parent has our | |
* "first child redirect" template. | |
* | |
* @param array $crumbs The complete list of breadcrumbs. | |
* | |
* @return array | |
*/ | |
function kanuka_wpseo_breadcrumbs_first_child_redirect( $crumbs ) { |