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 | |
/** | |
* Plugin Name: Remove H1 Format | |
* Plugin URI: http://calliaweb.co.uk/modify-tinymce-editor/ | |
* Description: A simple plugin to remove the H1 format from the WordPress TinyMCE editor. | |
* Version: 1.0.0 | |
* Author: Jo Waltham | |
* Author URI: http://calliaweb.co.uk/ | |
* License: GPL-2.0+ | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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 | |
// Do NOT include the opening php tag above | |
add_filter('tiny_mce_before_init', 'tiny_mce_remove_unused_formats' ); | |
/* | |
* Modify TinyMCE editor to remove H1. | |
*/ | |
function tiny_mce_remove_unused_formats($init) { | |
// Add block format elements you want to show in dropdown | |
$init['block_formats'] = 'Paragraph=p;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Address=address;Pre=pre'; |
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 | |
// Do NOT include the opening php tag above | |
add_action( 'genesis_before_loop','jmw_add_archive_date_title', 15 ); | |
/** | |
* Add date headline to date archive pages. | |
* | |
* If we're not on a date archive page then nothing extra is displayed. | |
* | |
* The date is marked up as a level 1 heading. |
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 | |
// Do NOT include the opening php tag above | |
add_filter( 'soliloquy_output_single_item', 'jmw_soliloquy_add_custom_slides', 10, 5 ); | |
/** | |
* Filter the Soliloquy slide html to append another slide. Works with version 2 of Soliloquy. | |
* | |
* @link http://soliloquywp.com/docs/appending-custom-slides-to-your-slider/ | |
* | |
* @param string $slider_html Existing slide HTML. |
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
/** Modify Post Meta to add custom taxs | |
* Author Jo Waltham jo@calliaweb.co.uk | |
* Add function to your functions.php | |
*/ | |
add_filter( 'genesis_post_meta', 'jmw_post_meta_filter' ); | |
function jmw_post_meta_filter($post_meta) { | |
if ( !is_single() ) // Only runs on single posts - remove if you want the output on archive pages | |
return; |
NewerOlder