Child theme : some templates are not overwritten

This topic contains 6 reply and 6 voices, and was last updated by Nayem 9 years, 8 months ago
Viewing 6 Posts - 1 through 6 (of 6 total)
Author Posts
July 22, 2014 at 4:28 pm 23955
Nayem Hello, I am having an issue when using the Dokan Child theme. The PHP files in the "dokan-child" root folder are working fine (for example, "front-page.php" is recognized), but the PHP files in the "templates" folder aren't recognized so they aren't overwriting the default template in the dokan folder (for example, I did some edits to templates "new-product.php" and added it as "dokan-child/templates/new-product.php". But none of my changes are being recognized. Any ideas ? Thanks, Jani
July 22, 2014 at 4:38 pm 23957
Sk Sk

Hello Jani,

Please check if you miss template name at the top of the page

[php]
/**
* Template Name: New Product
*/
[/php]

Thank you.

August 12, 2014 at 2:26 pm 25018
Jani Jani

Hi there,

Yes, the template name is there, but the templates from child folder still aren’t being recognized. The normal templates from woocommerce like “content-product.php” are being recognized fine, but not the dokan templates like “dashboard.php”, or “product-edit.php”.

The dokan child theme is working fine otherwise (custom CSS from the child theme is being used).

Please advise 🙂 Can you confirm that the directories are OK ?

themes/dokan/templates/product-edit.php
themes/dokan-child/templates/product-edit.php

I have tried placing it in themes/dokan-child/product-edit.php too but same issue !

Thanks

August 15, 2014 at 1:39 pm 25217
Joonas Joonas

I’ve got exactly same issue.

August 19, 2014 at 9:13 pm 25524
Sekander Badsha Sekander Badsha

The files you’re talking about is not customizable by just placing a file in the child theme. You’ll have to use filters to customize those files. You’ll get the idea to use which filters in the main file.

April 7, 2015 at 2:13 am 40762
Craig Craig

Can this be explained in a little more detail? I’m having this exact issue and I’ve noticed several posts in regards to this. Can you tell me where to find which filter in regards to product-edit.php? That is one of the template files that does not seem to be modifiable in the child theme.

April 7, 2015 at 6:37 pm 40837
Nayem Nayem

Hello Craig,

You have already posted here- https://wedevs.com/support/topic/dokan-plugin-child-theme/#post-40761. You will get your answer there.

Thanks.

Viewing 6 Posts - 1 through 6 (of 6 total)