I am using odoo10 community edition . I try to remove full footer
<template id="default_footer_remove" inherit_id="website.footer_custom">
<xpath expr="//div[@id='footer']" position="attributes">
<attribute name="t-att-style">'display: none;'</attribute>
</xpath>
</template>
This is my code . it will remove the contents .
This is the footer before execute .
This is the image after execute.
How to remove full footer ?
In order to completely hide or remove the footer you should give the attribute to the parent tag: <footer>
not to inner one.
Here is the footer part of default Odoo website layout:
<footer>
<div id="footer">
</div>
</footer>
So, you should give attribute to footer
tag. In this piece of code I directly replace it with nothing:
<template id="default_footer_remove" inherit_id="website.layout">
<xpath expr="//footer" position="replace">
</xpath>
</template>