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_action( 'init', 'custom_post_type', 0 ); | |
function custom_post_type() { | |
$labels = array( | |
'name' => _x( 'Post Types', 'Post Type General Name', 'text_domain' ), | |
'singular_name' => _x( 'Post Type', 'Post Type Singular Name', 'text_domain' ), | |
// 'menu_name' => __( 'Post Type', 'text_domain' ), // default to 'name' | |
'add_new' => __( 'Add New', 'text_domain' ), | |
'add_new_item' => __( 'Add New Item', 'text_domain' ), |
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
/* | |
Theme Name: Twenty Fourteen Child | |
Theme URI: http://example.com/twenty-fourteen-child/ | |
Description: Twenty Fourteen Child Theme | |
Author: Victor Saldarriaga | |
Author URI: http://bonsaipress.es | |
Template: twentyfourteen | |
Version: 1.0.0 | |
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready | |
Text Domain: twenty-fourteen-child |
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 Jetpack OG tags | |
*/ | |
add_filter( 'jetpack_enable_open_graph', '__return_false' ); |
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 | |
/** | |
* Configurar el textdomain de nuestro tema hijo. | |
* | |
* Utilizamos el hook 'after_setup_theme' y enganchamos nuestra función. | |
* Las traducciones deben ir dentro del directorio /languages/ en nuestro tema hijo. | |
*/ | |
function twentyfourteen_child_theme_setup() { | |
load_child_theme_textdomain( 'twentyfourteen-child-theme', get_stylesheet_directory() . '/languages' ); | |
} |
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 // <-- ignorar el inicio de las etiqueta PHP, el codigo debe ir en el archivo functions.php del tema hijo | |
// Enganchamos la función twentyfourteen_child_favicon_link al hook wp_head | |
add_action( 'wp_head', 'twentyfourteen_child_favicon_link' ); | |
/** | |
* Incluir un favicon en formato png | |
*/ | |
function twentyfourteen_child_favicon_link() { | |
echo '<link rel="shortcut icon" type="image/x-icon" href="'. get_stylesheet_directory_uri() .'/images/favicon.png" />'; | |
} |
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( 'wp_enqueue_scripts', 'twentyfourteen_parent_theme_style'); | |
function twentyfourteen_parent_theme_style() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'twentyfourteen_child_styles', 20 ); |