Upgrade to Pro — share decks privately, control downloads, hide ads and more …

WordPress Child-Themes

WordPress Child-Themes

Simon Kraft

October 04, 2017
Tweet

More Decks by Simon Kraft

Other Decks in Programming

Transcript

  1. WIR BACKEN UNS EIN CHILD-THEME ! ▸ Neues Verzeichnis in

    wp-content/themes darin: ▸ Neue style.css Datei ▸ Neue functions.php Datei ▸ Fertig (fast) 8
  2. DAS EINGEMACHTETM für unsere style.css: /** * Theme Name: Adenauer

    * Description: WP Meetup Bonn Child-Theme. * Author: Simon Kraft * Template: twentyseventeen * Version: 0.1 **/ 10
  3. DAS EINGEMACHTETM für unsere functions.php: function adenauer_styles() { wp_enqueue_style( 'parent-style',

    get_template_directory_uri() . '/style.css', 1 ); } add_action( 'wp_enqueue_scripts', 'adenauer_styles' ); 11