Home Forums Theme Support Dokan Keep current changes even after update.

This topic is: not resolved

This topic contains 13 replies, has 4 voices, and was last updated by  Sekander Badsha 4 years, 10 months ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #22498

    Christopher
    Member
    Post count: 88

    Hello there and sorry for bothering. We have made some changes in your theme and to the weight based shipping plugin of woocommerce. The problem is that now we want to keep it effective even after you release any new updates. Is there a way to do that ?
    Thanks

    #22500

    Nizam Uddin
    Keymaster
    Post count: 670

    Hello Christopher
    We are here to help you. Best way is to create a child theme. Make changes in the child theme. it’ll have all the features of Dokan theme. Even if you update the Dokan, your child theme will not be updated and all of your codes will still there . Here is the documentation of how to create dokan child theme.
    Thank you.

    #22502

    Christopher
    Member
    Post count: 88

    Our current developer said that even with child theme the changes we did will be lost. πŸ™ Dont know what else to do. Can you help us please?

    #22503

    Nizam Uddin
    Keymaster
    Post count: 670

    If you don't change in the main dokan theme then how it will be lost? πŸ™‚ Don't worry just change in the child theme. Thank you..

    #22513

    Mahi
    Member
    Post count: 1555

    Hello Chris,

    Please create a child-theme and overwrite all changes you done with current Dokan theme.

    Make sure to do a BACKUP first.

    #22520

    Christopher
    Member
    Post count: 88

    What do you mean overwrite all changes? Thank you

    #22576

    Sekander Badsha
    Member
    Post count: 2067

    Suppose, we have said a text color to be “Red” in Dokan theme. But you made a child theme and said that text to be “Green”. So finally the text will listen to the child theme and turn green. And this is called override or overwrite.

    #22653

    Christopher
    Member
    Post count: 88
    This reply has been marked as private.
    #22668

    Christopher
    Member
    Post count: 88
    This reply has been marked as private.
    #22669

    Sekander Badsha
    Member
    Post count: 2067

    You should never change any plugin or themes code directly. always write your customizations into a child-theme.
    I'm sure you remember in which lines you made the changes. just write those lines into your child theme. You can read about how to make a child theme here http://docs.wedevs.com/category/themes/dokan/developer-documentation-dokan/child-theme/

    or you can read the WordPress's official documentation about child theme here http://codex.wordpress.org/Child_Themes

    If you're really running out of time, hiring a developer would be best option for you.

    #22724

    Christopher
    Member
    Post count: 88
    This reply has been marked as private.
    #22746

    Christopher
    Member
    Post count: 88
    This reply has been marked as private.
    #22858

    Christopher
    Member
    Post count: 88
    This reply has been marked as private.
    #22954

    Sekander Badsha
    Member
    Post count: 2067

    Hi Christopher,
    You'll have to make a child theme and place the files in the exact order they are in the main theme. Suppose a file named test.php is located inside wp-content/themes/dokan/class/ so you should make a folder named class and place a file named test.php and copy paste the codes of the file which is inside the dokan theme. You just have to replicate the main theme file in your child theme. And if you didn't make any changes to some file named footer.php or index.php, you don't need to create those files in your child theme. You only need the files you changed. And as you read before in our documentation, a child theme must have style.css and inside that you must write the details.

    Let me know if you have any confusions.

    Cheers

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

The topic ‘Keep current changes even after update.’ is closed to new replies.