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
<?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 | |
/** | |
* 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 | |
/** | |
* Helper function to determine if we're on a blog section of a Genesis site. | |
* | |
* @since 2.0.0 | |
* | |
* @param $archives_only set to false to return true on singular posts | |
* @return bool True if we're on any section of the blog. |
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
.archive .one-third .entry-title, | |
.archive .one-fourth .entry-title, | |
.archive .one-sixth .entry-title, | |
.search .one-third .entry-title, | |
.search .one-fourth .entry-title, | |
.search .one-sixth .entry-title { | |
font-size: 18px; | |
text-align: center; | |
} |
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 sub categories don't show products only show sub categories. | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'jmw_sub_categories_loop' ); | |
function jmw_sub_categories_loop() { | |
// Are there sub categories? | |
$term_object = get_queried_object(); | |
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 | |
function nm2_people_page() { | |
// Get all user IDs | |
$args = array( | |
'fields' => 'ID', | |
); | |
$pids = get_users( $args ); |
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 | |
add_action( 'genesis_before_while', 'custom_add_title_before_loop' ); | |
/* | |
* Echo out the title | |
* The genesis_before_while runs after the if( have_posts() ) | |
* and before while( have_posts() ) : the_post(); | |
*/ | |
function custom_add_title_before_loop() { |
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 | |
/** | |
* Display alphabetical list of tags. | |
* Template Name: Tag Index | |
* @author Joanne Waltham | |
*/ | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'jmw_do_tag_index_loop' ); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
OlderNewer