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
| <?php | |
| /** | |
| * Remove redundant Genesis meta boxes. | |
| * | |
| * @param string $pagehook Page hook for the Theme Settings page. | |
| * | |
| * @since 1.1.0 | |
| */ | |
| add_action( 'genesis_theme_settings_metaboxes', function ( $pagehook ) { |
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
| /* TargetIMC Cambiar el fondo */ | |
| body.login { | |
| background-image: url('login-bg.jpg'); | |
| background-repeat: no-repeat; | |
| background-attachment: fixed; | |
| background-position: center; | |
| } |
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
| <?php | |
| // Snippets to customize Single Posts in Genesis | |
| // Hook this snippets in functions.php or in a template, You can use conditionals too. | |
| // Hook Featured Image to Entry Header | |
| add_action( 'genesis_entry_header', 'featured_post_image', 5 ); | |
| function featured_post_image() { | |
| if ( !is_singular( array( 'post', 'page' ) )) return; | |
| the_post_thumbnail('post-image'); | |
| } |
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
| <?php | |
| //do not add in opening php tag | |
| /** | |
| * Add in Footer or Tertiary Menu | |
| * | |
| * @package Genesis Teriary Menu | |
| * @author Neil Gee | |
| * @link http://coolestguidesontheplanet.com/add-footer-menu-genesis-child-theme/ | |
| * @copyright (c)2014, Neil Gee |
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
| // == LANDING PAGES | |
| if ( ! function_exists('custom_post_type') ) { | |
| // Register Custom Post Type | |
| function custom_post_type() { | |
| $labels = array( | |
| 'name' => _x( 'Landing Pages', 'Post Type General Name', 'text_domain' ), | |
| 'singular_name' => _x( 'Landing Page', 'Post Type Singular Name', 'text_domain' ), | |
| 'menu_name' => __( 'Landing Pages', 'text_domain' ), |
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
| /** | |
| * Wordpress Custom Post Type Landing Pages | |
| * In all examples $rewrite and $args are simplified to the discussed settings. | |
| */ | |
| /** | |
| * 1. Custom Post Type has archives and the slug is rewritten. | |
| * In this case a visit to /post-type-name will use archive-$posttype.php, $archive.php, index.php. | |
| * Pagination will work by default assuming $rewrite[ 'pages' ] is also true (default). | |
| * It's not possible to create a landing page called /post-type-name as the archive page controls the template hierarchy. |
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
| // Register Custom Post Type | |
| function custom_post_type() { | |
| $labels = array( | |
| 'name' => _x( 'Landing Pages', 'Post Type General Name', 'text_domain' ), | |
| 'singular_name' => _x( 'Landing Page', 'Post Type Singular Name', 'text_domain' ), | |
| 'menu_name' => __( 'Landing Pages', 'text_domain' ), | |
| 'name_admin_bar' => __( 'Landing Page', 'text_domain' ), | |
| 'archives' => __( 'Landing Page Archives', 'text_domain' ), | |
| 'parent_item_colon' => __( 'Parent Landing Page:', 'text_domain' ), |
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
| /** | |
| * Facebook Thumb Fixer | |
| */ | |
| add_action('wp_head','fbfixthumbnail'); | |
| function fbfixthumbnail(){ | |
| global $post; | |
| //If there is a post image | |
| if (has_post_thumbnail()) { |
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
| <?php | |
| new theme_customizer(); | |
| class theme_customizer { | |
| public function __construct() { | |
| add_action( 'customize_register', array(&$this, 'customize_linje' )); | |
| } | |
| /** | |
| * Customizer manager demo |
NewerOlder