This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Vantage Child theme templates

10 years ago · Last reply by Andrew Misplon 10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

7
  1. Greg Priday Staff 10 years, 11 months ago

    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. Chris Madsen 10 years, 11 months ago

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

    >

  3. Andrew Misplon Staff 10 years, 11 months ago

    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. Chris Madsen Private 10 years, 10 months ago

    This is a private message.

  5. Andrew Misplon Staff 10 years, 10 months ago

    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. Chris Madsen 10 years, 10 months ago

    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. Andrew Misplon Staff 10 years, 10 months ago

    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.

Have a different question or issue?

Start New Thread