Files
design-themes/theme_beauty/views/snippets/s_cta_box.xml
T
Serge Bayet (seba) e78bd3fbbb [REF] website: convert default images to WebP format
This commit switches the default image format from JPEG to WebP for all
design-themes images. WebP offers superior compression compared to JPEG,
resulting in smaller file sizes and faster website loading times.
Additionally, this change helps avoid warnings from performance tools
regarding image optimization.

See also: odoo/odoo#168862

task-3167548

closes odoo/design-themes#805

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-07-01 06:52:49 +00:00

24 lines
729 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_cta_box" inherit_id="website.s_cta_box">
<!-- Title -->
<xpath expr="//h2" position="replace" mode="inner">
Discover our large<br/>choice of cosmetics !
</xpath>
<!-- Paragraphs -->
<xpath expr="//p" position="replace" mode="inner">
Find the perfect products to express your beauty!<br/><br/>
</xpath>
<!-- Image -->
<xpath expr="//img" position="attributes">
<attribute name="src">/theme_beauty/static/src/img/snippets/library_image_16.webp</attribute>
</xpath>
<!-- Button -->
<xpath expr="//a[hasclass('btn')]" position="replace" mode="inner">
Shop now
</xpath>
</template>
</odoo>