• Resolved khappamj

    (@khappamj)


    Hi basically I’m changing the default store banner but it doesnt appears using a child-theme.

    – The new banner is in the dokan-lite/assets/images/newbanner.png
    – The store-lists-loop.php is in mychildtheme/dokan/templates/store-lists-loop.php

    so what’s wrong please?
    many thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Tanvir Hasan

    (@tanvirh)

    Hi @khappamj

    I can see that the file path you have created for the template overwriting it’s not appropriate.

    The correct file path will be: mychildtheme/dokan/store-lists-loop.php

    Apparently, I suggest not choosing the core asset folder for uploading any additional media files. Because with a newer plugin update everything will go back to the default if you modify anything to the core plugin files.

    Thanks!

    Thread Starter khappamj

    (@khappamj)

    hi thanks for your reply.
    However even using this path
    mychildtheme/dokan/store-lists-loop.php
    it doesnt work… still reading to the dokan-lite plugin folder .
    My child theme works because I’m also using few functions in the functions.php.
    So how can I fix this please?
    thanks! ??

    Plugin Support Tanvir Hasan

    (@tanvirh)

    Hi @khappamj

    I feel sorry to hear that, the previous guidance was not worked for the issue you are facing with the template overwriting.

    In that case, you can contact the Dokan team through their official Support Channel for further discussion.

    Thanks!

    Thread Starter khappamj

    (@khappamj)

    ok I do,
    many thanks
    ??

    Hi @khappamj,

    The default banner is unable to change by default, as the feature is not available in Dokan at this moment. Although you can achieve your requirement by overriding the template that you’re trying to do, but the template override method is not suggested, as the template could change/update in further updates. So, if a template is incompatible with the latest version of the plugin, it could create an error on a site.

    However, if you want to achieve your requirement by the template override method, you can get proper through the article: https://wpdoctor.press/overriding-dokan-plugin-template-easy/.

    Thanks!

    Thread Starter khappamj

    (@khappamj)

    so what about chld-them? Because basically child-theme doesnt work in Dokan?

    Hi @khappamj,

    I think I was not able to make you understand properly. I did not mean that the template override through the child theme method would not work. The reason I have shared the article is to know how to override the template in a proper way.

    However, I am not sure you are familiar with the child theme’s term, but the template override needs to do through the child theme; nevertheless, it is not recommended, as the plugin template could be updated in the future.

    If you are unfamiliar with the child theme term, you can read the article: https://blog.hubspot.com/website/wordpress-create-child-theme.

    Thanks!

    Thread Starter khappamj

    (@khappamj)

    Just carefully reading the article you sent me!

    from:
    ..plugins/dokan-lite/templates/store-list-loop.php

    to:
    ..themes/twentytwenty-child/dokan/store-list-loop.php

    is that correct?

    Hi @khappamj,

    If you are using Twenty Twenty theme as your parent theme, then yes, the child theme directory/folder name would be as you are trying, and the process of template override is also correct.

    Thanks!

    Thread Starter khappamj

    (@khappamj)

    so why it doesnt work please?

    Hi @khappamj,

    The way you are trying to change the default Store List page’s store banner by overriding the template through the child theme directory is correct, but if you want to change the single store page banner, then you need to work with the store-header.php template.

    However, it is difficult to know whether you are doing the code correctly in the template after override. So, it would be better to take help from a developer, as we are unable to review code according to our support policy.

    Thanks!

    Hi @khappamj,

    We did not hear from you in a while – so I am going to mark this topic as resolved.

    If you have any further queries, feel free to create a new topic.

    Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Changing default store banner issue’ is closed to new replies.