Home>Support>Vantage Child theme templates

Vantage Child theme templates

I have created a child theme, and am attempting to create a custom template. If I put the template file in the ‘parent ‘ /templates directory it shows in page ‘Template’ dropdown, but it does not work if I put the page in my child theme’s directory. Is this supposed to work?

Is there something I need to do to add my child theme templates? Curious because returns /vantage…

Thanks for any help

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 6 months ago Greg Priday
    Hi, I Work Here

    Hi Chris

    As long as you have the correct header (which is detailed here: http://codex.wordpress.org/Page_Templates), any file you add to your child theme’s root folder or one folder deep should work. Vantage keeps all page templates in the templates folder just to keep things neat, but this shouldn’t be necessary.

    Is this not working for you?

  2. 9 years, 6 months ago Chris Madsen

    Sorry. Sheesh. User error. Sorry for the bother. Child theme not activate.

    >

  3. 9 years, 6 months ago Andrew Misplon
    Hi, I Work Here

    Glad to hear you made progress here. If you need a starter child theme, please find one here:

    https://siteorigin.com/wp-content/uploads/2015/01/vantage-child-vanilla-enqueue.zip

    All the best.

  4. 9 years, 5 months ago Private Message - Chris Madsen

    This is a private message.

  5. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Hi Chris :) Thanks for reaching out.

    Please could you check the functions.php file in the child theme being used. Is the parent style.css file being enqueued there? If so, please delete the @import from your child style.css file.

    Once that’s all cleared up, let me know which CSS snippets you’re having trouble with and I’ll jump in.

  6. 9 years, 5 months ago Chris Madsen

    Here is the enqueuing I’m using in the function.php file:

    add_action( 'wp_enqueue_scripts', 'vantage_parent_style' );
    function vantage_parent_style() {
    wp_enqueue_style( 'parent-theme', get_template_directory_uri() . '/style.css' );
    }
    
    /**
    * Enqueue the child theme stylesheet.
    */
    
    add_action( 'wp_enqueue_scripts', 'vantage_child_style', 20 );
    function vantage_child_style() {
    wp_enqueue_style( 'circonus-theme', get_stylesheet_uri() );
    }
    

    and I did remove the @import… on http://www.circonus.com <http://www.circonus.com/&gt;, so you can look for style.css and see the css being loaded…

    Thank you for any help.

    >

  7. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Thanks Chris. Assuming you don’t have anything else going on in the child functions, please could you try changing the entire functions.php file to the follow contents:

    https://raw.githubusercontent.com/siteorigin/vantage-child/develop/functions.php

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More