A
A
Aleksandr Zakordonnyi2022-02-07 17:24:28
opencart
Aleksandr Zakordonnyi, 2022-02-07 17:24:28

How to remove all type='text/javascript' and type="text/css" attributes on Opencart 3?

How to remove all type='text/javascript' and type="text/css" attributes on Opencart 3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Pershin, 2022-02-07
@AlexRoode

If I understand correctly, template/common/header.twig and template/common/footer.twig have the following constructs:

{% for style in styles %}
<link href="{{ style.href }}" type="text/css" rel="{{ style.rel }}" media="{{ style.media }}" />
{% endfor %}
{% for script in scripts %}
<script src="{{ script }}" type="text/javascript"></script>
{% endfor %}

Here and delete

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question