تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
6379 أدوات العرض

I have create a new theme to add a button with custom css and js to the home webpage, everything works good after installing it but when I try to remove the theme nothing seems to happen, the button still remains on the home page.

How should I remove the theme if I do not want to continue using it on that website, should I use a module instead of theme?

Here is the xpath that I am using to insert the button using the theme, I am inheriting from website.layout:

<xpath expr="//div[@id='wrapwrap']/header/nav" position="after">                 

<div class="container">               

<div class="text-center">                  

<button class="btn btn-lg btn-primary rounded-circle rounded-circle rounded-circle rounded-circle" data-original-title="" title="" aria-describedby="tooltip747788" data-toggle="modal" data-target="#exampleModalLong"> New <i class="fa fa-plus-circle" />                  

</button> 

 </div>            

</div>         

</xpath>

Thank you



الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Hello Haresh,

Thanks for you help, I have tried, the following:

1- Removing browser cache

2- Remove theme from website

3- Remove theme module from odoo apps

4- Upgrade website and web modules

After completing those steps, the button and css remains the same. It only worked reinstalling website module.

الصورة الرمزية
إهمال
أفضل إجابة

Hello Carlos,

It's happen due to cache and frontend assets storage issue.

I think every frontend assets file stored somewhere.

So what you need to do:

1) First try to remove cache, may be it's works Download Cache remover for browse

2) If you don't don't want your created theme module then just uninstall it.

3) After uninstalling, upgrade module website and web

I hope it will helpful for you.

Thanks and regards

Haresh Kansara

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 16
3214
11
أبريل 25
90587
4
أبريل 23
7811
1
يونيو 20
2518
0
مايو 20
1890