Well, you seem to use a Custom Theme, since this is not the case in a default OC v.2.0.3.1
Theme, because it originally displays the Fontawesome BAR Pic, by this Code, in the
header.tpl, Line 92:
You could REPLACE <i class="fa fa-bars"></i> by a simple ,
to then just show an empty Button. (and keep it's height, by use of the
and as more exist, like , the 'wider' that button will be )
---
However, by use of this Mod below, one can change it, without removing Code from
a default header.tpl file physically. Technically, such might one day 'keep' another
Mod from doing it's job, if such a 'Line', or part of it, ever serves as Target/Anchor
in another Extension. Just to mention it, you never know ...
data-target=".navbar-ex1-collapse"><i class="fa fa-bars"></i></button>
Good Luck! It at least might be of help, to find your way trough!
Ernie
---
Untested, I use no OC 2.0.x Version, just their nice Bootstrap-Themes ...
menu_text_to_mobile_view_change.xml OC v.2.0.3.1 default Theme:
Configured to display an 'empty' Button:
PS. Such a VqMod can always easy be rewritten to OcMod, by
basically only changing:
TO:
Replace:
With:
Then change:
TO:
and:
TO:
and by renaming the ocmod - file to either
OR:
whatever works...
---
Theme, because it originally displays the Fontawesome BAR Pic, by this Code, in the
header.tpl, Line 92:
Code: Select all
........ ...... <i class="fa fa-bars"></i></button>
to then just show an empty Button. (and keep it's height, by use of the
and as more exist, like , the 'wider' that button will be )
---
However, by use of this Mod below, one can change it, without removing Code from
a default header.tpl file physically. Technically, such might one day 'keep' another
Mod from doing it's job, if such a 'Line', or part of it, ever serves as Target/Anchor
in another Extension. Just to mention it, you never know ...
data-target=".navbar-ex1-collapse"><i class="fa fa-bars"></i></button>
Good Luck! It at least might be of help, to find your way trough!
Ernie
---
Untested, I use no OC 2.0.x Version, just their nice Bootstrap-Themes ...
menu_text_to_mobile_view_change.xml OC v.2.0.3.1 default Theme:
Configured to display an 'empty' Button:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id><![CDATA[Change Menu Text in Mobile Version 2.0.x]]></id>
<version><![CDATA[OC v.2.0.x]]></version>
<vqmver><![CDATA[2.5.1]]></vqmver>
<author><![CDATA[cyclops - IP_CAM]]></author>
<file name="catalog/controller/common/header.php">
<operation error="log">
<search position="after" ><![CDATA[
$data['text_all'] = $this->language->get('text_all');
]]></search>
<add><![CDATA[
$data['text_menu'] = $this->language->get('text_menu');
]]></add>
</operation>
</file>
<file name="catalog/view/theme/*/template/common/header.tpl">
<operation error="log">
<search position="replace"><![CDATA[
<button type="button" class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"><i class="fa fa-bars"></i></button>
]]></search>
<add><![CDATA[
<button type="button" class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"><?php echo $text_menu; ?></i></button>
]]></add>
</operation>
</file>
<file name="catalog/language/*/common/header.php">
<operation error="log">
<search position="after"><![CDATA[
$_['text_all'] = 'Show All';
]]></search>
<add><![CDATA[
$_['text_menu'] = ' ';
]]></add>
</operation>
</file>
</modification>
basically only changing:
Code: Select all
<id><![CDATA[ ....whatever......]]></id>
Code: Select all
<name><![CDATA[ ....whatever......]]>]]></name>
Code: Select all
<vqmver><![CDATA[2.5.1]]></vqmver>
Code: Select all
<code><![CDATA[change_menu_text_mobile_view]]></code>
Code: Select all
file name=
Code: Select all
file path=
Code: Select all
<search position="WHATEVER" (+ what more might exist in this line)>
<add>
Code: Select all
<search>
<add position="WHATEVER" (+ what more might exist in this line)>
Code: Select all
install.xml
Code: Select all
menu_text_to_mobile_view_change.ocmod.xml
---
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: Semrush [Bot] and 200 guests