This file contains hidden or 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 | |
define( 'WP_DEBUG', true ); | |
define( 'WP_DEBUG_DISPLAY', false ); | |
define( 'WP_DEBUG_LOG', true ); |
This file contains hidden or 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 this opening line in your functions.php | |
/** | |
* Remove the standard Cookbook image | |
*/ | |
remove_action( 'cookbook_recipe_print_top', 'cookbook_template_image', 5 ); | |
/** | |
* Add the image size you'd like used. | |
* See https://developer.wordpress.org/reference/functions/add_image_size/ for |
This file contains hidden or 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
ul.arrow { | |
list-style: none; | |
> li { | |
list-style-type: none; | |
&::before { | |
background: url( "images/arrow-list.svg" ) no-repeat scroll center center / contain transparent; | |
content: ""; | |
display: block; |
This file contains hidden or 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
.show-hide-content { | |
height: auto; /* this should be set already, but just in case it isn't, it's necessary to have the height set to auto for this to work */ | |
max-height: 180px; /* Set this to whatever you want the height to start off as */ | |
overflow: hidden; | |
transition: max-height 0.2s ease-in-out; | |
} | |
.show-hide-content.full { /* The class "full" should be added with JS */ | |
max-height: 100vh; | |
} |
This file contains hidden or 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
.sub-menu-toggle:focus, | |
.menu-toggle:focus { | |
outline: none; | |
} |
This file contains hidden or 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 | |
// Ignore the top <?php if including in your functions file | |
add_filter( 'genesis_post_meta', 'anitac_post_meta_filter' ); | |
function anitac_post_meta_filter($post_meta) { | |
if ( is_home() ) { | |
$post_meta = '[post_categories before=""]'; | |
return $post_meta; | |
} |