Topic Resolution: Resolved

Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1541
    Avatarraphael.gia
    Supported

    Hi there,
    Could you detail the step to correctly install a Freshio child theme ? I know it can differ from one theme to another, could you specify the organisation of the files of the child theme folder, and the contents of style.css and functions.php in it ?
    Thank you.

    #1565

    Hi there,

    Please try to read the document at: https://www.wpbeginner.com/beginners-guide/wordpress-child-theme-pros-cons/

    and : https://developer.wordpress.org/themes/advanced-topics/child-themes/

    #1: All css custom for theme you can add into file style.css
    All function code php for theme, you can add into file function.php

    When you use child theme and add code into it, if you update parent theme, your custom code wouldn’t lose.

    #1589
    Avatarraphael.gia
    Supported

    Thanks for the answer. Yes I’ve already used child themes several times, if I follow along the WordPress developer docs it should be ok with Freshio ? No special aspect to take into consideration ? I prefer to ask because sometimes the usual way to intsall child theme won’t work with some themes.

    Thanks.
    Raphael

    #1591

    Hi again,

    Yes, our theme ready support child-theme. You can use child-theme to custom css and function code.

    #1599
    Avatarraphael.gia
    Supported

    Ok thank you again.

    #1639
    Avatarraphael.gia
    Supported

    Hello Billy,

    Should I let the the child theme functions.php file blank ? Does Freshio parent theme files load both parent’s and child’s stylesheets ? I don’t need to add PHP functions at the moment but just to be sure that stylesheets load correctly if I activate a child theme for custom CSS.

    I found theses lines of code in the class-main.php :
    /**
    * Enqueue child theme stylesheet.
    * A separate function is required as the child theme css needs to be enqueued _after_ the parent theme
    * primary css and the separate WooCommerce css.
    *
    * @since 1.5.3
    */
    public function child_scripts() {
    if (is_child_theme()) {
    $child_theme = wp_get_theme(get_stylesheet());
    wp_enqueue_style(‘freshio-child-style’, get_stylesheet_uri(), array(), $child_theme->get(‘Version’));
    }
    }

    #1645

    Again, our theme ready support child-theme, you can add custom css in file style.css ( child-theme).
    If you need to help, please let me know.

    Thanks

    #1673
    Avatarraphael.gia
    Supported

    You didn’t answer to the question but that’s ok. I’m working for a client who chose your theme, I’ve implemented the child theme manually for custom code and I’m used to do it. But to do things correctly, and the WordPress docs link you gave me mentions it too in “3. Enqueue stylesheet”, the content of functions.php in child theme depends on how the parent theme works.
    The only thing I was asking here is the minimal content of style.css and functions.php in child theme when you implement it manually with Freshio.

    #1689

    Oh, sorry.

    Please dowload child-theme at here: Child-theme Freshio

    #1694
    Avatarraphael.gia
    Supported

    Great, thank you Billy.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.