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
//SOURCE URL | |
^/any/slug/([0-9]{3}) | |
//TARGET URL | |
/and/new/slug/$1 |
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
<? | |
// BODY CLASS FOR NOLOGO PAGE TEMPLATE | |
add_filter( 'body_class','nologo_body_class' ); | |
function nologo_body_class( $classes ) { | |
if ( is_page_template( array( 'page-nologo.php', 'page-empathology.php', 'page-resilience-reboot.php' ) ) ) { | |
$classes[] = 'nologo'; | |
} | |
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
<? | |
// Found Here: https://generatepress.com/forums/topic/child-theme-style-css-version-string/ | |
function _fix_child_css_version( $src ) { | |
$parts = explode( '?', $src ); | |
if ( stristr( $parts[0], 'your-child-theme/style.css' ) ) { | |
$child_ver = filemtime( get_stylesheet_directory() . '/style.css' ); | |
return $parts[0] . '?v=' . $child_ver; | |
} | |
else { | |
return $src; |
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 | |
// FAVICON ADDITION | |
function add_my_favicon() { | |
if ( ! is_admin() ) { | |
//$favicon_path = get_site_url() . '/img/favicon-client.png'; | |
$favicon_path = get_site_url() . '/i/favicon-client'; | |
} else { | |
//$favicon_path = get_site_url() . '/img/favicon-admin.png'; | |
$favicon_path = get_site_url() . '/i/favicon-admin'; |