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 | |
// Don't include opening php | |
// Sitemap Output | |
add_filter( 'genesis_sitemap_output', 'pb_customize_sitemap_output' ); | |
function pb_customize_sitemap_output() { | |
$heading = ( genesis_a11y( 'headings' ) ? 'h2' : 'h4' ); | |
// Pages |
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
cat *.sql > backup.sql |
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 oEmebed support for Google Drive Video | |
wp_embed_register_handler( | |
'google-drive-videos', | |
'#https?://drive.google\.com/file/d/([a-zA-Z0-9_-]+)/preview$#i', | |
'pb_add_oembed_handler_dgvideo' | |
); | |
function pb_add_oembed_handler_dgvideo( $matches, $attr, $url, $rawattr ) { |
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
wp plugin install log-emails disable-emails | |
wp plugin activate log-emails disable-emails |
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 | |
/** | |
* You can find the source function for the genesis search form | |
* within the Genesis theme under > /lib/strucutre/search.php | |
* | |
* This updated search from has replaced the <input type="button"> | |
* with a <button> element. This makes it easier to add an icon | |
* in replacement of the text with the approtraite attribute roles | |
* that doesn't cause an html validation error. |
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 | |
/** | |
* This is copied from Know The Code's | |
* KTC-Child Theme | |
* @source: https://github.com/KnowTheCode/KTC-Child-Theme/blob/master/lib/structure/search.php | |
* Mostly so i can find it in the future | |
*/ | |
add_filter( 'posts_orderby', __NAMESPACE__ . '\add_orderby_for_search_query', 50 ); |
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 | |
/** | |
* Custom Genesis Theme Settings | |
* At the moment this doesn't output anything if the default tagline is empty. | |
* | |
* @package Child Theme | |
* @author Patrick Boehner | |
* @copyright Copyright (c) 2017, Patrick Boehner | |
* @license GPL-2.0+ |
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 | |
/** | |
* This will log all errors notices and warnings to a file called debug.log in | |
* wp-content (If Apache does not have write permission, you may need to create | |
* the file first and set the appropriate permissions (i.e. use 660) ) | |
*/ | |
define( 'WP_DEBUG', false ); // Or false | |
if ( WP_DEBUG ) { | |
define( 'WP_DEBUG_LOG', true ); |
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
// Add the SVG icons functions. | |
include_once( get_stylesheet_directory() . '/lib/icon-functions.php' ); |