Skip to content

Instantly share code, notes, and snippets.

@danielpataki
Last active March 25, 2018 15:30
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save danielpataki/614aa30ce07773030eb1 to your computer and use it in GitHub Desktop.
Save danielpataki/614aa30ce07773030eb1 to your computer and use it in GitHub Desktop.
Child Themes Article
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
function enqueue_parent_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}
if ( !is_defined( 'my_meta' ) ) {
function my_meta() {
// code for postmeta here
}
}
/*
Theme Name: Twenty Fourteen Child
Theme URI: http://yourwebsite.com/twentyfourteen-child/
Description: My first child theme, based on Twenty Fourteen
Author: Daniel Pataki
Author URI: http://danielpataki.com
Template: twentyfourteen
Version: 1.0.0
Tags: black, green, white, light, dark, two-columns, three-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready, responsive-layout, infinite-scroll, post-slider, design, food, journal, magazine, news, photography, portfolio, clean, contemporary, dark, elegant, modern, professional, sophisticated
Text Domain: twenty-fourteen-child
*/
@reisizer
Copy link

thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment