jebu1104
1/21/2016 - 3:20 PM

child themes

child themes

/*
Theme Name: Architecture
Theme URI: http://themes.goodlayers.com/architecture-v1-06
Description: Architecture Child Theme
Author: Goodlayers
Author URI: http://www.goodlayers.com
Template: architecture-v1-06
Version: 1.0
License:
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: white, light, yellow, two-columns, fluid-layout, custom-background, custom-colors, featured-images, theme-options
Text Domain: architecture-child
*/
<?php


// Enqueue Parent stylesheet
add_action('wp_enqueue_scripts', 'my_enqueue_styles');

function my_enqueue_styles()
{

    /* If using a child theme, auto-load the parent theme style. */
    if (is_child_theme()) {
        wp_enqueue_style('parent-style', trailingslashit(get_template_directory_uri()) . 'style.css');
    }

    /* Always load active theme's style.css. */
    wp_enqueue_style('style', get_stylesheet_uri());
}


// Dynamic Footer Shortcode
function vervocity_dynamic_copyright()
{

    // Code
    return '&copy;' . date('Y');
}
add_shortcode('Copyright', 'vervocity_dynamic_copyright');