• Resolved freshwater

    (@freshwater)


    siteorigin says “start the file off with an opening PHP tag: Starter Child Theme” with this example
    https://siteorigin.com/basics/child-themes/ they don’t show an opening php tag but i assume it is “<?php”
    ———–
    /**
    * Enqueue the parent theme stylesheet.
    */
    function vantage_child_enqueue_parent_style() {
    wp_enqueue_style( ‘vantage-parent-style’, get_template_directory_uri() . ‘/style.css’ );
    }
    add_action( ‘wp_enqueue_scripts’, ‘vantage_child_enqueue_parent_style’, 8 );

    —————-

    what does “Starter Child Theme” have to do with this php file or the css file in the child theme? why does siteorigin write the words “Starter Child Theme” in their tutorial?

    here is the css file example they give. i see no relationship with “Starter Child Theme”
    /*
    Theme Name: Vantage Child
    Author: SiteOrigin
    Author URI: https://siteorigin.com
    Theme URI: https://siteorigin.com/theme/vantage
    Description: Vantage Child Theme
    Version: 1.0.0
    Template: vantage
    Text Domain: vantage-child
    */
    ————-

    thank you for any help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi freshwater,

    Sorry about that! It’s an issue with the shortcodes we’re using to build that page. It’ll be corrected shortly. Thanks for letting us know about this.

    In the meantime, please disregard the mention of “Starter Child Theme” in that sentence. Also, your assumptions are correct, you need to add <?php if you’re creating a functions.php.

    Thanks @freshwater, appreciate the feedback. I’ve removed the paragraph in question and just included the opening PHP tag above the stylesheet enqueue. All the best 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘exact Vantage child theme php code?’ is closed to new replies.