Tagged: changes in dokan theme
June 26, 2014 at 7:08 pm #22498
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 ?
ThanksJune 26, 2014 at 7:14 pm #22500Nizam UddinKeymaster
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
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 #22503Nizam UddinKeymaster
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 #22513MahiMember
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
What do you mean overwrite all changes? Thank youJune 29, 2014 at 12:37 pm #22576
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 #22653July 1, 2014 at 8:06 pm #22668July 1, 2014 at 8:16 pm #22669
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 #22724July 2, 2014 at 4:05 pm #22746July 3, 2014 at 1:29 pm #22858July 5, 2014 at 11:36 am #22954
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.
- The topic ‘Keep current changes even after update.’ is closed to new replies.