eko
December 16, 2024, 3:39am
13
The footer function is not only adding things to the bottom. You can use a script to change quite a lot. As mentioned search the forum and you would for example find:
It should be possible to do this using a script in the footer to replace the default logo.
[image]
Add your logo image to Folders Tab, and get the Image URL of your logo.
Create Footer with this code
<script>
let images = document.querySelectorAll('img');
images.forEach((image) => {
if (image.src.includes('/business-logo-view?')) {
image.src = '/view-attachment?ChIJLKpJzsrmO04Rm0UucjPjQwGiBgRUZXN0';
}
});
</script>
Replace URL on this line image.src = ‘/view-attachment?ChIJ…
and
footers is work good in custom themes
{% if footers != null %}
{% for footer in footers %}
<div style="padding-top: 5px;">
{{ footer }}
</div>
{% endfor %}
{% endif %}
[image]
it should give you an idea
this footer code for standard themes
<div style="background-color: lightblue; border: 2px solid red;
border-radius: 5px;
padding: 5px; color: blue; text-align: center;">Test Color Footers</div>
<div style="display: none;"><script>
document.addE…