Dokan plugin child theme
Author | Posts |
---|---|
October 28, 2014 at 9:25 pm 29269 | |
RevolvedMedia | Hi there, I have been looking on your site regarding child theme for Dokan PLUGIN but can only find info about the THEME. I want to to customise the templates such as store.php and others and have copied these files in my current child theme (ex: /my-child-theme/dokan/templates/store.php) However when I am making modifications to those files nothing happens... Can you please direct me to the right procedure? Thanks! C |
October 30, 2014 at 8:14 pm 29460 | |
Sekander Badsha | Hello Claire, Dokan is not a theme now. It is a plugin. To customize the Dokan templates, you have to make a folder named dokan inside your theme folder and place files in it. like the store.php file is now located inside “wp-content/plugins/dokan-plugin/templates” folder. That should work for you. If not, please let me know then. Thank you 🙂 |
October 30, 2014 at 11:15 pm 29479 | |
Claire | Hi Sekander, Thanks for that but unfortunately this doesn’t work for me hence why I came Also for some reason, clicking edit product in the dashboard returns an Thanks very much C Claire* // creative & managing director* |
November 7, 2014 at 12:54 pm 29918 | |
Sekander Badsha | Hello Claire, If you can provide your login details, I can check why the modifications from your theme is not overriding. And I can not tell you anything without seeing the error details. So can you please tell me what error you are getting? |
November 8, 2014 at 8:29 pm 30012 | |
Sekander Badsha | Hi Claire, I have logged into your site and added {border-bottom: 1px black solid} in your child themes style.css and check in your sites dashboard page, a black border in each dashboard menu item is added. So the modification from child theme is working. And I can see a lot of plugin is installed on your site. So the error in the product page might happen because of plugin conflicts. So to check that please deactivate all your plugins except Dokan and WooCommerce and check if the issue solves or not. Thank you for having patience 🙂 |
March 26, 2015 at 12:48 pm 40041 | |
RevolvedMedia | We have a parent theme (not dokan theme – yes we’re using the plugin) and a child theme we are modding. I am noticing this same issue with the following files: /wp-content/themes/child-theme/dokan/new-product.php I have /wp-content/themes/child-theme/dokan/store.php and it is in fact over riding correctly Any ideas? – I hate changing core code for obvious reasons. Thanks |
March 26, 2015 at 9:52 pm 40072 | |
Nayem | Hello, If you want to modify any template file then you must have to put that file in the Dokan folder of your child theme. But if you want to modify any other function then you have to do it through your child theme’s function.php file. Thank you 🙂 |
March 26, 2015 at 9:59 pm 40075 | |
RevolvedMedia | The original files locations I am trying to override are located in: /plugins/dokan/templates/new-product.php I have placed my modified files in: /wp-content/themes/child-theme/dokan/new-product.php They are not being overridden, I am having to modify the cod=re files to see the changes. Any ideas? |
March 28, 2015 at 12:11 pm 40142 | |
Nayem | Hello, Do you want to modify those entire page or single function?. |
March 28, 2015 at 1:27 pm 40152 | |
RevolvedMedia | I am adding changes to the HTML within the files: see https://wedevs.com/support/topic/dokan-charge-for-featured-sticky-product-placement/#post-39973 For example: adding an additional column to the product list. Consider these files changes as all being HTML changes. =============================================================== Can you let me know where the Dokan core code is that hooks to use the Dokan child templates – (save me searching for it, maybe I can resolve this issue myself). Thanks again |
March 31, 2015 at 7:25 am 40323 | |
RevolvedMedia | Anything recommendations – I must be missing something simple here? |
March 31, 2015 at 6:12 pm 40371 | |
Nayem | Hello , You can provide your login and ftp details then our developer will help you to override the file. In the overridden file you can add code by your own. Please provide your login details by using this form -http://wedevs.com/provide-login-details/. |
April 7, 2015 at 1:56 am 40761 | |
Craig | Has there been a workaround for how to modify some of the template files? I’m having the same issues. Some of the template files I can modify in my child theme but others don’t seem to be used. For instance, product-edit.php is not one of the files that I can modify. I’ve put the files in the correct directory(I think) but still with no success. I know my child theme is working however because I have made many other modifications including some of the template files. |
April 7, 2015 at 10:27 am 40770 | |
RevolvedMedia | @Nayem – sorry I will provide logins as soon as I’m working on this project again.
I will take a copy of the files/folders before support makes the changes – then I can do a compare and post the results, this way everyone will have the answer and a “how-to” guide to follow. I will write detailed instructions as best I can. I like to help 🙂 |
April 10, 2015 at 3:15 am 41028 | |
Craig | Guys, so I think I found where the product-edit.php is called and how to get it to work. I was able to get it to work by first adding the product.php(plugins/dokan/templates) into my child theme dokan folder(themes/Dokan-child/dokan) and then when I added the product-edit.php file I could modify it and see the changes. RevolvedMedia, give that a try and see if it works. Hope this helps. |
April 11, 2015 at 3:29 am 41068 | |
RevolvedMedia | @Craig – Thanks man, I will give this a shot when I’m working it again. 🙂 |