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( 'init', 'register_cpt_locations' ); | |
/** | |
* Create Locations custom post type | |
*/ | |
function register_cpt_locations() { | |
$labels = array( | |
'name' => __( 'Locations', 'locations' ), | |
'singular_name' => __( 'Location', 'locations' ), |
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 | |
/** | |
* This file adds a timeline to your desired page in Genesis Framework. | |
* | |
* @author Omar Al-Ansari | |
* @link http://www.alansari.io | |
*/ | |
// Force full width content | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); |
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 | |
// Only include the code below this line | |
add_action( 'genesis_entry_footer', 'io_sources_custom_fields' ); | |
/** | |
* Add sources to posts, if posts have sources assigned | |
*/ | |
function io_sources_custom_fields() { | |
if ( is_singular( $post_types = 'post' ) ) { |
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 | |
// Only include the code below this line | |
add_action( 'init', 'register_cpt_youtube_videos' ); | |
/** | |
* Create YouTube videos custom post type | |
*/ | |
function register_cpt_youtube_videos() { | |
$labels = 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 | |
//* Do not include the opening php tag | |
// The below code will go into your functions.php right before "//* Start the engine" | |
// once done you need to upload your language files to child theme's /languages folder. | |
//Child Theme Language override | |
define('GENESIS_LANGUAGES_DIR', STYLESHEETPATH.'/languages'); | |
define('GENESIS_LANGUAGES_URL', STYLESHEETPATH.'/languages'); |
NewerOlder