Support » Plugin: Dokan - Best WooCommerce Multivendor Marketplace Solution - Build Your Own Amazon, eBay, Etsy » Changing default store banner issue
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?
I can see that the file path you have created for the template overwriting it’s not appropriate.
The correct file path will be:
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.
hi thanks for your reply.
However even using this path
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?
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/.
so what about chld-them? Because basically child-theme doesnt work in Dokan?
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.
Just carefully reading the article you sent me!
is that correct?
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.
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
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.
- You must be logged in to reply to this topic.