Home Forums Theme Support Dokan Child theme : some templates are not overwritten

This topic is: resolved

Tagged: ,

This topic contains 6 replies, has 6 voices, and was last updated by  Nayem 3 years, 11 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #23955

    Jani
    Member
    Post count: 16

    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

    #23957

    Sk
    Moderator
    Post count: 371

    Hello Jani,

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

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

    Thank you.

    #25018

    Jani
    Member
    Post count: 16

    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

    #25217

    Joonas
    Member
    Post count: 18

    I've got exactly same issue.

    #25524

    Sekander Badsha
    Member
    Post count: 2067

    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.

    #40762

    Craig
    Member
    Post count: 12

    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.

    #40837

    Nayem
    Moderator
    Post count: 6480

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

The topic ‘Child theme : some templates are not overwritten’ is closed to new replies.