Instantly share code, notes, and snippets.

View gutenberg-style.css
.wp-block-embed figcaption {
margin-top: .5em;
color: #6c7781;
text-align: center;
font-size: 13px
}
.editor-block-list__block[data-type="core/embed"][data-align=left] .editor-block-list__block-edit,
.editor-block-list__block[data-type="core/embed"][data-align=right] .editor-block-list__block-edit,
.wp-block-embed.alignleft,
View categories-template.php
<?php
/**
* Template Name: Category Archives
*/
add_action( 'genesis_loop', 'custom_category_loop' );
/**
* Custom loop that display a list of categories with corresponding posts.
*/
function custom_category_loop() {
View archive-podcast.php
<?php
// Force full-width-content layout.
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
// Move post info.
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
add_action( 'genesis_entry_footer', 'genesis_post_info' );
// Remove post content
View functions.php
<?php
add_action( 'pre_get_posts', 'cd_show_all_posts' );
/**
* Show all posts on a specified archive page.
*
* @author Carrie Dils
* @link https://carriedils.com/genesis-archive-page/
* @param object $query data
*
View archive.php
<?php //remove this line
add_filter( 'genesis_term_intro_text_output', 'cd_do_archive_term_description' );
/**
* Show archive description only on first page of a taxonomy archive.
*
* @return string
*/
function cd_do_archive_term_description( $intro_text ) {
if ( is_paged() ) {
View bbpress.scss
/**
* bbPress specific CSS
*
* @package bbPress
* @subpackage Theme
*/
/* =bbPress Style
-------------------------------------------------------------- */
View bbpress.scss
/**
* bbPress specific CSS
*
* @package bbPress
* @subpackage Theme
*/
/* =bbPress Style
-------------------------------------------------------------- */
View functions.php
<?php // remove this line.
add_action( 'genesis_header', 'cd_site_image', 5 );
/**
* Output image before site title.
*
* Checks to see if a header image exists. If so, output that in an `img` tag. If not, get
* the Gravatar associated with the site administrator's email (under Settings > General).
*
* @see get_header_image() Retrieve header image for custom header.
View archive-team.php
<?
/**
* Team Archive template
*/
// Remove default post title (with link)
remove_action( 'genesis_entry_header','genesis_do_post_title' );
add_action( 'genesis_entry_header','cd_archive_title' );
/**
View functions.php
<?php //remove this line
add_filter( 'genesis_post_info', 'cd_post_info_filter' );
function cd_post_info_filter( $post_info ) {
if ( ! is_singular( 'post' ) ) {
$post_info = '[post_date] by [post_author_posts_link] [post_comments]';
$post_modified_info = '[post_modified_date before="<br />Last updated "]';
return $post_info . $post_modified_info;