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
/* | |
Add the following to the functions/functionality file | |
Courtesy: http://lizardpc.com/blog/how-to/change-enter-title-here-for-custom-post-types-wordpress-3-8/ | |
*/ | |
function title_text_input ( $title ) { | |
if ( get_post_type() == 'name_of_your_custom_post_type' ) { | |
$title = __( 'Enter your whatever text you want' ); | |
} | |
return $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
/** | |
* Change the Excerpt text and description | |
*/ | |
function change_excerpt_name( $translated_text, $text, $domain ) { | |
if ( $_GET['post_type'] == 'staff' ) { | |
switch ( $translated_text ) { | |
case 'Excerpt' : | |
$translated_text = 'Staff Role/Position'; | |
break; | |
case 'Excerpts are optional hand-crafted summaries of your content that can be used in your theme. <a href="http://codex.wordpress.org/Excerpt" target="_blank">Learn more about manual excerpts.</a>' : |
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
/** | |
* Change the Featured Image Box and upload link Labels for Custom Post Type | |
* @link https://wordpress.org/support/topic/relabel-featured-image-on-custom-type | |
*/ | |
/*This section changes the label of the image box*/ | |
add_action('do_meta_boxes', 'change_image_box'); | |
function change_image_box() | |
{ | |
remove_meta_box( 'postimagediv', 'staff', 'side' ); /*Alter the word "Staff" to match the name of your CPT */ |
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 //* You can do without this opening tag | |
//* Courtesy of http://www.engagewp.com/set-default-conditional-featured-images-wordpress/ | |
/** | |
* This snippet requires the Deafult Featured Image plugin to be installed | |
* https://wordpress.org/plugins/default-featured-image/ | |
* It replaces the image you selected as your default with one of your choosing | |
* Should be added to the Functionality Plugin | |
*/ |
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 | |
/** | |
* Custom Body Classes | |
* @link http://www.billerickson.net/wordpress-class-body-tag/ | |
* @author Bill Erickson | |
* | |
* @param array $classes existing body classes | |
* @return array modified body classes | |
*/ |
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 | |
/** | |
* Home Slider | |
* | |
* Uses the Genesis Responsive slider combined with Advanaced Custom Fields | |
* setting in Dashboard - Instellingen website | |
*/ | |
function rrwd_home_slider() { | |
global $wpdb; |
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
/** To use a separate single post template for each category, you will need to add the following function in your functions.php: **/ | |
/** | |
* Define a constant path to our single template folder | |
*/ | |
define(SINGLE_PATH, TEMPLATEPATH . '/single'); | |
/** | |
* Filter the single_template with our custom function | |
*/ |
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
<html> | |
<head> | |
</head> | |
<body class style=""height: 100%> | |
<div class="container"><!-- The Main Container --> | |
<div id="topbar" class="clearfix"><!-- The Topbar --> | |
<div id="search"><!-- Search Panel --> | |
Search Area -> Quick Links |
OlderNewer