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
// You need is_title_visible = false custom field in a page or post. | |
// "false" is the only value which will trigger the code to hide a page title. | |
// For posts | |
add_action( 'loop_start', 'remove_titles_all_single_posts' ); | |
function remove_titles_all_single_posts() { | |
if ( is_singular('post') ) { | |
$cust_fld_title_visible = get_post_meta(get_the_ID(), "is_title_visible", true); | |
if ($cust_fld_title_visible == "false") { | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); |
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
function themeprefix_search_button_text( $text ) { | |
return ( 'Search text goes here...'); | |
} | |
add_filter( 'genesis_search_text', 'themeprefix_search_button_text' ); |
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
float x1, y1; | |
float x2, y2; | |
float x3, y3; | |
float x4, y4; | |
int frame = 0; | |
PImage title; | |
float a = 0; |
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
// Revisions (doesn't work?) | |
define( 'WP_POST_REVISIONS', 5 ); | |
// Disable automtic updates | |
define('AUTOMATIC_UPDATER_DISABLED', true ); | |
// Get rid of the code editor | |
define('DISALLOW_FILE_EDIT', 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
add_filter( 'genesis_prev_link_text', 'modify_previous_link_text' ); | |
function modify_previous_link_text($text) { | |
$text = 'Your Custom Previous Link Text'; | |
return $text; | |
} | |
/** | |
* @author Brad Dalton | |
* @example http://wpsites.net/web-design/customize-genesis-next-previous-page-link-text/ | |
* @copyright 2014 WP Sites | |
*/ |
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
/** | |
* Remove Entry Header | |
*/ | |
function prefix_remove_entry_header() { | |
if ( ! is_front_page() ) { return; } | |
//* Remove the entry header markup (requires HTML5 theme support) | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); |
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
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); |
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
/** Replace the standard loop with our custom loop */ | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'child_do_custom_loop' ); | |
function child_do_custom_loop() { | |
global $paged; // current paginated page | |
global $query_args; // grab the current wp_query() args | |
$args = array( | |
'category__not_in' => 42, // exclude posts from this category |
OlderNewer