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 // Remove this line | |
/** Register Utility Bar Widget Areas. */ | |
genesis_register_sidebar( array( | |
'id' => 'utility-bar-left', | |
'name' => __( 'Utility Bar Left', 'theme-prefix' ), | |
'description' => __( 'This is the left utility bar above the header.', 'theme-prefix' ), | |
) ); | |
genesis_register_sidebar( array( |
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 | |
/** Template for displaying single posts. | |
* | |
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post | |
*/ | |
// Theme template stuff | |
// Blah blah | |
the_loop() |
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 | |
/** | |
* Get a reusable block by its title. | |
* | |
* @param string $title The post title of the reusable block. | |
* @param bool $filter_results Whether the results should be filtered through the_content filter. | |
* @return string|null The reusable block content if found, null otherwise. | |
*/ | |
function get_reusable_block( $title, $filter_results = 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
<?php | |
/** | |
* Template Name: Testimonial Archives | |
* Description: Used as a page template to show page contents, followed by a loop through a CPT archive | |
*/ | |
remove_action ('genesis_loop', 'genesis_do_loop'); // Remove the standard loop | |
add_action( 'genesis_loop', 'custom_do_loop' ); // Add custom loop |
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
#!/bin/bash | |
# | |
# Declare SITES as an associative array | |
declare -A SITES | |
# Format: SITES[WPMDB profile number]=backup_filename_base | |
SITES[1]=remote_backup_com | |
#SITES[2]=another_site_to_backup | |
#SITES[3]=my_other_blog | |
## These variables will be specific to the WordPress |
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 | |
/** | |
* Filter breadcrumbs on Salary Data pages. | |
* | |
* @param array $link The link array. | |
* @param array $breadcrumb The breadcrumb item array. | |
* | |
* @return str $link The link output. | |
*/ | |
function zg_add_text_to_breadcrumb( $link, $breadcrumb ) { |
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-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, |
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 //remove this line | |
add_filter( 'comment_form_defaults', 'cd_pre_comment_text' ); | |
/** | |
* Change the text output that appears before the comment form | |
* Note: Logged in user will not see this text. | |
* | |
* @author Carrie Dils <http://www.carriedils.com> | |
* @uses comment_notes_before <http://codex.wordpress.org/Function_Reference/comment_form> | |
* |
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 //Remove this line | |
/** | |
* Remove Genesis child theme style sheet | |
* @uses genesis_meta <genesis/lib/css/load-styles.php> | |
*/ | |
remove_action( 'genesis_meta', 'genesis_load_stylesheet' ); | |
/** | |
* Enqueue Genesis child theme style sheet at higher priority |
NewerOlder