does anyone know how to change the layout of the footer in 2 columns grid in the mobile view? ...... by default the footer has 1 column which is too long in the mobile view, so I would like to get the result of the attached image
oc 3.0.2.0 - default theme
many thanks in advance
Try something like this, in the theme/template/common/footer.twig File!
Code is taken from OC v.3.0.2.0!
Ernie
---
I have it in a similar way, but other Version, here:
http://www.jti.li
---
Code is taken from OC v.3.0.2.0!
Ernie
---
Code: Select all
<footer>
<div class="container">
<div class="row">
{% if informations %}
<div class="col-xs-6 col-sm-3 col-md-3">
<h5>{{ text_information }}</h5>
<ul class="list-unstyled">
{% for information in informations %}
<li><a href="{{ information.href }}">{{ information.title }}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
<div class="col-xs-6 col-sm-3 col-md-3">
<h5>{{ text_service }}</h5>
<ul class="list-unstyled">
<li><a href="{{ contact }}">{{ text_contact }}</a></li>
<li><a href="{{ return }}">{{ text_return }}</a></li>
<li><a href="{{ sitemap }}">{{ text_sitemap }}</a></li>
</ul>
</div>
<div class="col-xs-6 col-sm-3 col-md-3">
<h5>{{ text_extra }}</h5>
<ul class="list-unstyled">
<li><a href="{{ manufacturer }}">{{ text_manufacturer }}</a></li>
<li><a href="{{ voucher }}">{{ text_voucher }}</a></li>
<li><a href="{{ affiliate }}">{{ text_affiliate }}</a></li>
<li><a href="{{ special }}">{{ text_special }}</a></li>
</ul>
</div>
<div class="col-xs-6 col-sm-3 col-md-3">
<h5>{{ text_account }}</h5>
<ul class="list-unstyled">
<li><a href="{{ account }}">{{ text_account }}</a></li>
<li><a href="{{ order }}">{{ text_order }}</a></li>
<li><a href="{{ wishlist }}">{{ text_wishlist }}</a></li>
<li><a href="{{ newsletter }}">{{ text_newsletter }}</a></li>
</ul>
</div>
</div>
<hr>
<p>{{ powered }}</p>
</div>
</footer>
{% for script in scripts %}
<script src="{{ script }}" type="text/javascript"></script>
{% endfor %}
<!--
OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but its generally accepted practise to make a small donation.
Please donate via PayPal to donate@opencart.com
//-->
</body></html>
http://www.jti.li
---
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Thx Enrie....It works, it's exactly what I wanted to get, the only problem that modifying the footer no longer works the sticky menu.
Do you know how I could solve this?
Do you know how I could solve this?
Well, if this fixed header is done by an OcMod or VqMod, it's possible, that
the Mod in charge no longer finds it's anchor in the footer.twig Code, to know,
where to place it's content, probably some Javascript.
You therefore have to check the fixed header extension, and check if one of the links
directs to the footer.twig, then compare the modified with your existing footer.twig file,
to find out, where this ANCHOR is placed, and how it has to be renamed, to match the same place,
as in the original footer.twig file. That VqMod- or OcMod Anchor-link Line looks about
like this:
OcMod:
<file path="catalog/view/theme/default/template/common/footer.twig">
or:
<file path="catalog/view/theme/*/template/common/footer.twig">
VqMod:
<file name="catalog/view/theme/default/template/common/footer.twig">
or:
<file name="catalog/view/theme/*/template/common/footer.twig">
Good Luck!
Ernie
the Mod in charge no longer finds it's anchor in the footer.twig Code, to know,
where to place it's content, probably some Javascript.
You therefore have to check the fixed header extension, and check if one of the links
directs to the footer.twig, then compare the modified with your existing footer.twig file,
to find out, where this ANCHOR is placed, and how it has to be renamed, to match the same place,
as in the original footer.twig file. That VqMod- or OcMod Anchor-link Line looks about
like this:
OcMod:
<file path="catalog/view/theme/default/template/common/footer.twig">
or:
<file path="catalog/view/theme/*/template/common/footer.twig">
VqMod:
<file name="catalog/view/theme/default/template/common/footer.twig">
or:
<file name="catalog/view/theme/*/template/common/footer.twig">
Good Luck!
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Who is online
Users browsing this forum: daniil_oc, Google [Bot], pprmkr, WaxedPerfection and 458 guests