Keep current changes even after update.

This topic contains 13 reply and 4 voices, and was last updated by Sekander Badsha 10 years, 4 months ago
Viewing 13 Posts - 1 through 13 (of 13 total)
Author Posts
June 26, 2014 at 7:08 pm 22498
Sekander Badsha 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
June 26, 2014 at 7:14 pm 22500
Nizam Uddin Nizam Uddin

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.

June 26, 2014 at 7:26 pm 22502
Christopher Christopher

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?

June 26, 2014 at 7:32 pm 22503
Nizam Uddin Nizam Uddin

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..

June 27, 2014 at 6:19 am 22513
Mahi Mahi

Hello Chris,

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

Make sure to do a BACKUP first.

June 27, 2014 at 11:59 am 22520
Christopher Christopher

What do you mean overwrite all changes? Thank you

June 29, 2014 at 12:37 pm 22576
Sekander Badsha Sekander Badsha

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.

July 1, 2014 at 1:58 pm 22653
Christopher Christopher This reply has been marked as private.
July 1, 2014 at 8:06 pm 22668
Christopher Christopher This reply has been marked as private.
July 1, 2014 at 8:16 pm 22669
Sekander Badsha Sekander Badsha

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.

July 2, 2014 at 1:02 pm 22724
Christopher Christopher This reply has been marked as private.
July 2, 2014 at 4:05 pm 22746
Christopher Christopher This reply has been marked as private.
July 3, 2014 at 1:29 pm 22858
Christopher Christopher This reply has been marked as private.
July 5, 2014 at 11:36 am 22954
Sekander Badsha Sekander Badsha

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 13 Posts - 1 through 13 (of 13 total)