Home>Support>Help with installing a child theme to Vantage

Help with installing a child theme to Vantage

By Eric, 10 years ago. Last reply by Andrew Misplon, 10 years ago.
Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hi Andrew & Co.
Finally I would like to try and install on our page www.badbaljan.com a child them to Vantage and Woocomerce to prevent that my translations always get overwritten…
A long time ago i was planing to take this step and you send me a ready Vantage child theme folder, is that file up to date or do you have a newer one? Can you give me a step by step guide?

Thanks!

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

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

    Hi EW

    Here is a child theme you can use:

    https://siteorigin.com/wp-content/uploads/2015/01/vantage-child-translation-ready-02.zip

    You’ll need to unzip this folder on your desktop, insert your language files and then re-zip the folder. Install from Appearance > Themes > Add New: Upload Theme. Test it out. If it works you’ll then need to redo Customizer and Menu settings, a result of activating a child theme.

  2. 10 years, 5 months ago Eric

    Thanks! :-)

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

    For sure!

  4. 10 years, 5 months ago Eric

    Hi,
    Sorry, I stumbled on the first step… Were do i find my language file? :-)

    Eric

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

    Have you already created translation files? They will be a .mo and .po file extension. Two files. If you have you might have put them in the parent theme’s language folder.

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

    (If you still need to translate here is an overview: http://premium.wpmudev.org/blog/how-to-translate-a-wordpress-theme/)

  7. 10 years, 5 months ago Eric

    • If understand correct there is not the mail WP language file I should translate, but it is the existing Swedish translation file for Vantage, correct? (Where is that located?)
    • I also like to change the translations in the Swedish Woocomerce language file?And also putting it into into the Vantage child theme. For example the Swedish translation of the “sale flash”. (Where is that located?)

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

    * There is unfortunately no existing Swedish translation file for Vantage, unless perhaps you created your own.

    * Here is where to store WooCommerce translations:

    http://docs.woothemes.com/document/woocommerce-localization/

    See: Making your Localization upgrade safe

    To change the WooCommerce Swedish translation you’d need to locate the translation file in the languages folder of WooCommerce at /wp-content/plugins/woocommerce and make changes in the program Poedit. Then save and put in the location described above.

  9. 10 years, 5 months ago Eric

    Thanks. Have a nice weekend!

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

    For sure, you too!

  11. 10 years, 5 months ago Eric

    Hi Andrew,
    I like to translate the English language Vantage file to Swedish with PoEdit. And then put it into the Vantage child theme. I tried to find it with filezilla, were is it located?

  12. 10 years, 5 months ago Eric

    Is this the file I am looking for, /wp-content/themes/vantage/languages/vantage.pot. ?

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

    That’s correct. That’s the file you need to use to begin the translation.

  14. 10 years, 5 months ago Eric

    I guess missed something.
    I have translated some text strings in the file /wp-content/themes/vantage/languages/vantage.pot.
    and after that placed both the vantage.mo and the vantage.pot into the vantage-child language folder and then I re-zip the folder and Install from Appearance > Themes > Add New: Upload Theme. But then WP says that the theme misses the style.css. Can you help me please?

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

    The language files need to be saved with a corresponding file name:

    sv_SE.mo
    sv_SE.po

    To confirm this, check what the lang code is that is listed in your wp-config.php file found in your WordPress root. That lang variable there needs to correspond with these files names.

    Missing stylesheet is a problem. Can you mail that ZIP to me quick. Let me check it right now.

    [email protected]

  16. 10 years, 5 months ago Eric

    ok now it is sent. Thanks!

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

    Got it. Thanks.

  18. 10 years, 5 months ago Eric

    Hi,
    Have you been able to check the child theme folder?

    Eric

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

    Thanks for the bump Eric, I’ll jump into that as soon as possible. Apologies for the wait.

  20. 10 years, 5 months ago Eric

    Hi Andrew, Sorry to bump you again… Have you forgotten me or are you busy? If you are really busy you can take this case when you find some gap.
    Eric

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

    So sorry Eric, I cleared email down to zero last night. Let me go dig around in closed tickets and see what’s up.

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

    Greg and I both took a look at your functions.php file now and it all looks solid. This is what you sent:

    /**
     * Enqueue the parent theme stylesheet.
     */
    
    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( 'child-theme', get_stylesheet_uri() );
    }
    
    /**
     * Set the child theme text domain.
     */
    
    function vantage_child_set_text_domain(){
    load_theme_textdomain( 'vantage', get_stylesheet_directory() . '/languages' );
    }
    add_action('after_setup_theme', 'vantage_child_set_text_domain', 15);
    

    Assuming your Vantage parent folder is correctly named “vantage” then the child theme should see the parent stylesheet.

  23. 10 years, 5 months ago Eric

    Hi Andrew & Co. :-)
    Many many many thanks for your help and patience! I think i manage to upload the child theme and I hope it work. Have a great weekend!

    Eric

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

    For sure, anytime. Hope you make progress here. Let us know if you get stuck.

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