Website Snippet Inherit/Extend AttributesĀ  Add new class in div/para

Odoo 8 and 9

Mustufa Rangwala

Base odoo File(addons path): website/views/snippet.xml

template id:snippets

find: Text Block

How to inherits:

<template id="bla_bla_bla" name="New feature" inherit_id="website.snippets">

<xpath expr="//div/section[@class='oe_snippet_body mt16 mb16']/div[@class='col-md-12 mb16 mt16']" position="attributes">

<attribute name="class">bottom_aligner</attribute>

</xpath></template>

and apply your CSS in New file

new_look.css

.bottom_aligner {
    display: inline-block;
    height: 100%;
    vertical-align: bottom;
    width: 0px;

}

<template id="blaw" inherit_id="website.assets_frontend" name="extra Snippet">

<xpath expr="/t" position="inside">

<link rel="stylesheet" href="/website_twitter/static/src/css/new_look.css" type="text/css"/>

</xpath></template>