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
/* WP Gallery Bootstrap styling | |
-------------------------------------------------------------- */ | |
.gallery { | |
@include make-row(); | |
margin-right: -0.5rem; | |
margin-left: -0.5rem; | |
margin-top: 1.5rem; | |
margin-bottom: 1.5rem; |
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 | |
/** | |
* Custom Post Type with extended-cpts | |
* http://johnbillion.com/extended-cpts/ | |
* https://github.com/johnbillion/extended-cpts | |
*/ | |
add_action('init', function () { | |
register_extended_post_type('project', [ | |
'has_archive' => false, |
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 | |
/** | |
* If Shortcake isn't active, then add an administration notice. | |
*/ | |
add_action('init', function () { | |
if (! function_exists('shortcode_ui_register_for_shortcode')) { | |
add_action('admin_notices', 'shortcake_notices'); | |
} | |
}); |
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 | |
/** | |
* Cleanup and customize the admin with Intervention | |
* @link https://github.com/soberwp/intervention | |
*/ | |
use function Sober\Intervention\intervention; | |
$title = 'Welcome to the ' . get_bloginfo('name') . ' Admin area'; | |
$content = 'For support please contact <a href="https://ignation.io" target="_blank">Ignation</a>.<br> |
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
{ | |
"name": "roots/bedrock", | |
"repositories": [ | |
{ | |
"type": "package", | |
"package": { | |
"name": "advanced-custom-fields/advanced-custom-fields-pro", | |
"version": "5.7.12", | |
"type": "wordpress-plugin", | |
"dist": { |
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
/* Widgets | |
-------------------------------------------------------------- */ | |
.widget { | |
.sidebar & { | |
margin-bottom: $grid-gutter-width; | |
font-size: $font-size-sm; | |
line-height: $line-height-sm; | |
// Display with columns on small screen | |
@include media-breakpoint-up(sm) { |
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 | |
/** | |
* Disable WooCommerce default emails. | |
*/ | |
add_action( 'woocommerce_email', function ( $email_class ) { | |
/** | |
* Hooks for sending emails during store events | |
**/ |
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 | |
/** | |
* Custom Woocommerce product search | |
*/ | |
add_filter( 'get_product_search_form', function ( $form ) { | |
$form ='<form role="search" method="get" class="woocommerce-product-search" action="' . esc_url( home_url( '/' ) ) . '"> | |
<label class="screen-reader-text" for="woocommerce-product-search-field">' . esc_html__( 'Search for:', 'woocommerce' ) . '</label> | |
<div class="input-group"> | |
<input type="search" |