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
*|RSSITEMS:|* | |
<h2 class="mc-toc-title"><a href="*|RSSITEM:URL|*" target="_blank">*|RSSITEM:TITLE|*</a></h2> | |
<br /> | |
*|RSSITEM:CONTENT_FULL|*<br /> | |
<a href="*|RSSITEM:URL|*" target="_blank">Read in browser »</a><br /> | |
*|RSSITEM:SHARE:Facebook,Twitter|* *|RSSITEM:PLUSONE|*<br /> | |
*|END:RSSITEMS|*<br /> | |
| |
<h3 class="h3">Recent Articles:</h3> | |
*|RSS:RECENT|* |
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 | |
add_action( 'genesis_entry_content', 'pbh_do_post_content', 9 ); | |
function pbh_do_post_content() { | |
echo '<div class="slider-container">'; | |
// If at least 1 image is present in the Project Images Gallery field | |
if( $images = get_field('gallery') ) { |
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 me | |
/** | |
* Remove archive title prefixes. | |
* | |
* @param string $title The archive title from get_the_archive_title(); | |
* @return string The cleaned title. | |
*/ | |
function ph_custom_archive_title( $title ) { |
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 me | |
//Removes Title and Description on CPT Archive | |
remove_action( 'genesis_before_loop', 'genesis_do_cpt_archive_title_description' ); | |
//Removes Title and Description on Blog Archive | |
remove_action( 'genesis_before_loop', 'genesis_do_posts_page_heading' ); | |
//Removes Title and Description on Date Archive | |
remove_action( 'genesis_before_loop', 'genesis_do_date_archive_title' ); | |
//Removes Title and Description on Archive, Taxonomy, Category, Tag | |
remove_action( 'genesis_before_loop', 'genesis_do_taxonomy_title_description', 15 ); |
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 | |
//* Add opening markup for the Page Header | |
add_action( 'genesis_before_header', 'wwd_opening_page_header' ); | |
function wwd_opening_page_header() { | |
if (is_front_page() || is_search() || is_404() ) { | |
return; | |
} |
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 | |
add_filter("request", "ph_change_term_request", 1, 1); | |
function ph_change_term_request($query) | |
{ | |
$tax_name = "my_tax_name"; | |
if (isset($query["attachment"])) | |
{ | |
$include_children = true; | |
$name = $query["attachment"]; |
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
//* Remove page title form home page | |
add_action( 'get_header', 'child_remove_titles' ); | |
function child_remove_titles() { | |
if ( is_front_page() ){ | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
} | |
} |
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
function themeprefix_acf_input_admin_footer() { | |
?> | |
<script type="text/javascript"> | |
(function($) { | |
acf.add_filter('color_picker_args', function( args, $field ){ | |
// add the hexadecimal codes here for the colors you want to appear as swatches | |
args.palettes = ['#F0F4F9', '#FFFBC5'] |
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 | |
/* | |
* Creates fake sub pages for a custom post type. | |
*/ | |
// Create 'Fake sub-pages' permalinks and titles. | |
$sub_pages = array( | |
'about' => 'About', | |
'people' => 'People', | |
'information' => 'Information', |
OlderNewer