CMS Development

AAccount
Member

standard_footer_includes global

SOLVE

I have unwanted code in standard_footer_includes on my site in any template, how can I remove it?

Знімок екрана 2023-04-02 161041.png

0 Upvotes
2 Accepted solutions
ankitparmar09
Solution
Top Contributor

standard_footer_includes global

SOLVE

Hello @AAccount 


Thanks for reaching out. If you can remove the unwanted footer code.


Try

You can go in the Theme folder --> templates --> partials --> footer.html

OR

You can go in the Theme folder --> templates --> pages --> .html 

add code last to the {% endblock body %}
<!-- Footer -->
{% block footer %}
<!-- only blank area -->
{% endblock footer %}
<!-- End Footer -->

OR another

- Right click footer module and select the "Edit global group"

 

footer-code-issue.png

View solution in original post

0 Upvotes
Indra
Solution
Guide | Elite Partner
Guide | Elite Partner

standard_footer_includes global

SOLVE

Hi @AAccount,

 

What code is unwanted? Some code is needed for HubSpot to work properly.

It is possible to remove spesific items from it with a little hack by adding a replace filter like this:
{{ standard_footer_includes|replace('<script src="example.js"></script>','') }}

So by replacing it by notting, it will be removed.


Indra Pinsel - Front-end developer - Bright Digital
Did my answer solve your issue? Help the community by marking it as the solution.

View solution in original post

0 Upvotes
2 Replies 2
Indra
Solution
Guide | Elite Partner
Guide | Elite Partner

standard_footer_includes global

SOLVE

Hi @AAccount,

 

What code is unwanted? Some code is needed for HubSpot to work properly.

It is possible to remove spesific items from it with a little hack by adding a replace filter like this:
{{ standard_footer_includes|replace('<script src="example.js"></script>','') }}

So by replacing it by notting, it will be removed.


Indra Pinsel - Front-end developer - Bright Digital
Did my answer solve your issue? Help the community by marking it as the solution.
0 Upvotes
ankitparmar09
Solution
Top Contributor

standard_footer_includes global

SOLVE

Hello @AAccount 


Thanks for reaching out. If you can remove the unwanted footer code.


Try

You can go in the Theme folder --> templates --> partials --> footer.html

OR

You can go in the Theme folder --> templates --> pages --> .html 

add code last to the {% endblock body %}
<!-- Footer -->
{% block footer %}
<!-- only blank area -->
{% endblock footer %}
<!-- End Footer -->

OR another

- Right click footer module and select the "Edit global group"

 

footer-code-issue.png

0 Upvotes