New Landing How can we help? Themeforest Theme Support Dante How to find which files to edit for changes ?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #111064
    mhote
    Member
    Post count: 394

    Hi guys, is there a way to find which files to edit or is that ‘local knowledge’?

    I’m trying to edit:

    – “items in the shopping bag” in the top nav
    – “proceed to checkout” in the top nav
    – “view shopping bag” in the top nav

    It’d be great if there’s a trick to finding out which php file to edit vs asking.

    #111087
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please check sf-header.php at /dante/includes/ and sf-woocommerce.php at /dante/swift-framework/.
    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

    #111458
    mhote
    Member
    Post count: 394

    Thanks Mohammad… should these changes be inserted into child theme folders to avoid loss?

    #111494
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    The text string inside a function so you can override these function through child theme easily. Just copy full function code, paste at child theme and make changes as you want. Hope that should help to you.
    Thanks

    #112351
    mhote
    Member
    Post count: 394

    Thanks Mohammad. To clarify, to make this work, do I need to create 2 new child theme folders ie

    dante-child/includes/sf-header.php
    dante-child/swift-framework/sf-woocommerce.php

    and then copy the sf-header.php and sf-woocommerce.php from the Dante parent folder, then make customisations?

    Or something else?

    #112389
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please create only one child theme directory and create a functions.php inside it. Now you have to insert sf_woo_header_add_to_cart_fragment function’s code from sf-woocommerce.php and sf_get_cart function’s code from sf-header.php.
    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

    #112442
    mhote
    Member
    Post count: 394

    That worked, thanks for the explanation!

    #112451
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

Viewing 8 posts - 1 through 8 (of 8 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