New Landing How can we help? Themeforest Theme Support Dante How to migrate theme contents to child theme

Viewing 7 posts - 1 through 7 (of 7 total)
  • Posted in: Dante
  • #221623
    solidsn2004
    Member
    Post count: 208

    Hi,

    I’ve come to a point that I need to do some modification to the website I am working on. For example, I need to add a short description under each product in my shop page. In order to do so, I would need to change the function.php file of Dante theme.
    I have never used a child theme before so I’ve decided to try it out. I have uploaded the child theme provided with the downloads of the theme and activated it but all the contents are within the normal theme as I was only working there.

    Is there a way to migrate all my configurations to the child theme?

    Please let me know how to achieve this.

    Thanks in advance.

    #221624
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    You can add custom functions to the child theme’s functions.php file. If you want to edit current functions, you will need to copy the function to your child theme and make changes. If you’re editing woocommerce files, you need to copy the whole file and folder structure to your child theme

    – Kyle

    #221629
    solidsn2004
    Member
    Post count: 208

    Hi Kyle and thanks for your fast reply.

    I am not sure I understand correctly. From what I understand you need to install both dante and child theme at the same time and start working only within the child theme right?

    I had only installed the dante theme without the child and now that I need to modify functions.php file I installed the child theme. However, when I try to activate the child theme there is no content inside as all my work is in the normal dante theme.

    My question is:

    Do I need to migrate all the files from dante theme to dante-child theme? If yes how do I do that? Do I log in to my server and move them?

    What I need to change is to add this code in the functions.php file:

    add_action('woocommerce_after_shop_loop_item_title','woocommerce_template_single_excerpt', 5);

    I guess it’s a woocommerce modification.

    #221631
    solidsn2004
    Member
    Post count: 208

    Ah I think I get it.

    After I changed the active theme to child theme I had to set again as a static front page the home page and also set the home menu.
    Now it’s working fine.

    So now I can make changes in the functions.php file that is located in child theme right?

    #221636
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Exactly. You only will have to assign the menu and the homepage once.

    -Rui

    #221637
    solidsn2004
    Member
    Post count: 208

    Perfect! Mark as resolved 🙂

    #221640
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    ok.
    -Rui

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register