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
public function tasty_team_breadcrumb( $crumb, $args ) { | |
// Only modify the breadcrumb if in the correct post type | |
if( $this->post_type !== get_post_type() ) | |
return $crumb; | |
// Grab terms | |
// Primary category support if available. | |
if ( class_exists('WPSEO_Primary_Term') ) | |
{ | |
// Show the post's 'Primary' category, if this Yoast feature is available, & one is set |
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
/** | |
* Over-ride bootstrap 4 .col-1 .col-2 flex grid styles conflict in Woocommerce layout styles | |
*/ | |
.woocommerce, | |
.woocommerce-page { | |
.col2-set { | |
.col-1, | |
.col-2 { | |
max-width:none; | |
flex: none; |
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_action('acf/init', 'my_register_blocks'); | |
function my_register_blocks() { | |
// check function exists. | |
if( function_exists('acf_register_block_type') ) { | |
//if(class_exists('Portfolio_Post_Type')){ | |
// register a project slider block. |
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 | |
/** | |
* Obtain the path to the admin directory. | |
* | |
* @return string | |
*/ | |
function my_plugin_get_admin_path() { | |
// Replace the site base URL with the absolute path to its installation directory. | |
$admin_path = str_replace( get_bloginfo( 'url' ) . '/', ABSPATH, get_admin_url() ); | |
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
/*jslint node: true */ | |
"use strict"; | |
const $ = require('gulp-load-plugins')(); | |
const argv = require('yargs').argv; | |
const gulp = require('gulp'); | |
const browserSync = require('browser-sync').create(); | |
const merge = require('merge-stream'); | |
const colors = require('colors'); | |
const gutil = require('gulp-util'); |