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
/** | |
* Filter the taxonomy hierarchy to inject a parent level of templates. | |
* | |
* @param string $template The current template. | |
* @return string Filtered taxonomy template. | |
*/ | |
function new_tax_hierarchy( $template ) { | |
$term = get_queried_object(); | |
// If not an object, or the object doesn't have a taxonomy, bail. |
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 taxonomy parent to the body class | |
* | |
* @param array $classes The current classes. | |
* @return array New array with updated classes | |
*/ | |
function body_class_add_parent_taxonomy( $classes ) { | |
if ( is_tax() ) { | |
$taxonomy = 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
.ui-datepicker { | |
background-color: #fff; | |
border: 1px solid #66AFE9; | |
border-radius: 4px; | |
box-shadow: 0 0 8px rgba(102,175,233,.6); | |
display: none; | |
margin-top: 4px; | |
padding: 10px; | |
width: 240px; | |
} |
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 | |
/* | |
* Register new wishlist endpoint | |
*/ | |
function primer_add_wishlist_endpoint() { | |
add_rewrite_endpoint( 'wish-list', EP_ROOT | EP_PAGES ); | |
} | |
add_action( 'init', 'primer_add_wishlist_endpoint' ); |