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 | |
add_filter( 'display_featured_image_genesis_backstretch_variables', 'rgc_test_slider_filter' ); | |
/** | |
* Change the banner featured image to be a slidehow sitewide. | |
* | |
* @param array $variables | |
* @return array | |
*/ | |
function rgc_test_slider_filter( $variables ) { |
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 | |
// Completely remove the date and time from comments. | |
add_filter( 'genesis_show_comment_date', '__return_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 | |
// Disable the SuperSide Me settings page and customizer panel on child sites | |
if ( ! is_main_site() ) { | |
add_filter( 'supersideme_disable_customizer_panel', '__return_true' ); | |
add_filter( 'supersideme_disable_settings_page', '__return_true' ); | |
} | |
add_filter( 'supersideme_get_plugin_setting', 'prefix_supersideme_use_main_site_setting', 20 ); | |
/** |
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 tag | |
add_filter( 'genesis_noposts_text', 'leaven_change_search_text_one', 10, 2 ); | |
function leaven_change_search_text_one( $text ) { | |
$text .= __( ' Would you like to try again?', 'leaven' ); | |
$text .= get_search_form( false ); | |
return $text; |
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 | |
add_filter( 'scriptlesssocialsharing_twitter_query_args', 'prefix_add_twitter_hashtag_scriptless' ); | |
/** | |
* Add a hashtag to every Twitter button on a site. | |
* Requires Scriptless Social Sharing 3.0.0 | |
* | |
* @param $query_args | |
* @return mixed | |
*/ |
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 | |
add_filter( 'scriptlesssocialsharing_link_markup', 'prefix_modify_scriptless_link_markup', 10, 2 ); | |
/** | |
* Add SVG icons to Scriptless sharing buttons. | |
* | |
* @param $output | |
* | |
* @param $button | |
* |
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 | |
add_filter( 'scriptlesssocialsharing_pocket_url', 'prefix_add_pocket', 10, 3 ); | |
/** | |
* Create the URL for the Pocket share/save button. | |
* | |
* @param $url | |
* @param $button | |
* @param $attributes | |
* |
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 | |
add_filter( 'supersideme_custom_buttons', 'prefix_add_woocommerce_quantity_total_button' ); | |
/** | |
* Add the WooCommerce quantity and total to a shopping cart button. | |
* | |
* @param $buttons | |
* | |
* @return mixed | |
*/ |
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
now located at: https://github.com/robincornett/leaven-responsive-menu |
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 | |
/** | |
* Build the string/markup for an SVG icon. | |
* | |
* @param $icon | |
* | |
* @param array $args | |
* | |
* @return string |