Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.87 KB | None | 0 0
  1. /*
  2.  Theme Name:   Tribe Child
  3.  Theme URI:    http://example.com/tribe-child/
  4.  Description:  Tribe Child Theme
  5.  Author:       John Doe
  6.  Author URI:   http://example.com
  7.  Template:     tribe
  8.  Version:      1.0
  9.  License:      GNU General Public License v2 or later
  10.  License URI:  http://www.gnu.org/licenses/gpl-2.0.html
  11.  Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
  12.  Text Domain:  tribe-child
  13. */
  14.  
  15. FUNCTIONS.PHP
  16. <?php
  17. function my_theme_enqueue_styles() {
  18.  
  19.     $parent_style = 'parent-style';
  20.  
  21.     wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
  22.     wp_enqueue_style( 'child-style',
  23.         get_stylesheet_directory_uri() . '/style.css',
  24.         array( $parent_style ),
  25.         wp_get_theme()->get('Version')
  26.     );
  27. }
  28. add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement