Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
// Disable Disqus for the 'product' Custom Post Type | |
add_filter( 'comments_template' , __NAMESPACE__ . '\\block_disqus', 1 ); | |
function block_disqus($file) { | |
global $post, $wp_query; | |
if ( 'product' == get_post_type() ) | |
remove_filter('comments_template', 'dsq_comments_template'); | |
return $file; | |
} |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
<?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; |
/* http://tympanus.net/Development/HoverEffectIdeas/ */ | |
/*---------------*/ | |
/***** Sadie *****/ | |
/*---------------*/ | |
figure.effect-sadie figcaption::before { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; |
<?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--> |
<?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%' **/ |
<?php | |
function themename_customize_register($wp_customize){ | |
$wp_customize->add_section('themename_color_scheme', array( | |
'title' => __('Color Scheme', 'themename'), | |
'priority' => 120, | |
)); | |
// ============================= |