A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);
#!/bin/bash | |
echo -e "Which directory theme you like to setup?" | |
read theme | |
# Initiating Digimix theme setup | |
echo "Initiating Digimix theme setup" | |
cd /srv/www/digimix.co/current/web/app/themes/$theme | |
# install node modules |
/** | |
* Optimize WooCommerce Scripts | |
* Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages. | |
*/ | |
add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 ); | |
function child_manage_woocommerce_styles() { | |
//remove generator meta tag | |
remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); |
<?php | |
function themename_customize_register($wp_customize){ | |
$wp_customize->add_section('themename_color_scheme', array( | |
'title' => __('Color Scheme', 'themename'), | |
'priority' => 120, | |
)); | |
// ============================= |
<?php | |
/* | |
Plugin Name: Convert Custom Taxonomy to Custom Post Type | |
Plugin URI: N/A | |
Description: A plugin to convert a Custom Taxonomy to a Custom Post Type and transfer associated metadata. | |
Version: 0.1 | |
Author: Strap1 | |
Author URI: http:/www.hiphopinenglish.com | |
/** Convert Taxonomy '%name%' to CPT '%name%' **/ |
<?xml version="1.0"?> | |
<layout> | |
<default> | |
<!--Root/Default Layouts--> | |
<reference name="root"> | |
<!--Appending Block--> | |
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/> | |
</reference> | |
<!--CSS and JS Files--> |
/* http://tympanus.net/Development/HoverEffectIdeas/ */ | |
/*---------------*/ | |
/***** Sadie *****/ | |
/*---------------*/ | |
figure.effect-sadie figcaption::before { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; |
<?php | |
/* | |
Plugin Name: SVG Upload | |
Plugin URI: http://www.lewiscowles.co.uk | |
Description: Super PHP Plugin to add Full SVG Media support to WordPress, I should live in {$webroot}/wp-content/plugins/ folder ;) | |
Author: Lewis Cowles | |
Version: 1.5.2 | |
Author URI: http://www.lewiscowles.co.uk/ | |
*/ | |
namespace lewiscowles\WordPress\Compat\FileTypes; |