hello,
I want to remove Copy Right Footer from website in Odoo 15 how do this by coding
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
hello,
I want to remove Copy Right Footer from website in Odoo 15 how do this by coding
The function to disable copyright is available OotB since version 14 and not need to do be done by coding:
- Open the website editor,
- Select the page footer
- Disable copyright
Hi,
Hi heba,
You can achieve this by using the following XML code:
<template id="
web.frontend_layout" inherit_id="
web.frontend_layout ">
<xpath expr="//t[@t-if='not not_copyright']" position="replace">
<div class="container py-3">
<div class="row">
<!-- <div class="col-sm text-center text-sm-start text-muted"> -->
<!-- <span class="o_footer_copyright_name me-2">Copyright &copy; <span t-field="http://res_company.name" target="_blank">res_company.name" itemprop="name">Company name</span></span> -->
<!-- </div> -->
<div class="col-sm text-center text-sm-end">
<t t-call="web.brand_promotion"/>
</div>
</div>
</div>
</xpath>
</template>
In this code snippet, the part related to the copyright information has been commented out. You can simply remove the comment tags (<!--
and -->
) surrounding the copyright section to enable it in your website layout
Hope it helps
you can override the website template. Here's how you can do it:
odoo>
template id="custom_website_footer" inherit_id="website.footer_custom" name="Custom Website Footer" priority="100">
xpath expr="//div[@class='footer']" position="replace">
!-- Add your custom content here or leave it empty to remove the footer -->
/xpath>
/template>
/odoo>
thanks for your comment , but iget error in v15
try this way:
add dependency in manifest.py
'depends': ['website'],
step 2:inherit footer
template id="hide_footer_copyright" inherit_id="website.layout" name="Footer No Copyright" active="True">
xpath expr="//div[hasclass('o_footer_copyright')]" position="replace">
#add your custom copyright content
/xpath>
/template>
<?xml version="1.0" encoding="utf-8"?><odoo> <template id="remove_footer" inherit_id="website.layout"> <xpath expr="//footer" position="replace"> <!-- Empty footer section --> </xpath> </template></odoo>
thank you , but should I write to remove copyright only not all footer
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up