Post by dupfold » Thu Sep 21, 2017 10:47 pm

Hello

I'd like to remove the telephone number from the header and contact us page please? I've search this topic and try several suggestions, but the telephone number still appears in both places

Thank you
Last edited by dupfold on Thu Sep 21, 2017 11:14 pm, edited 1 time in total.

New member

Posts

Joined
Wed Oct 21, 2015 3:42 am

Post by yodapt » Thu Sep 21, 2017 11:00 pm

catalog\view\theme\default\template\common\header.twig

Remove or comment line 46

catalog\view\theme\default\template\information\contact.twig

Remove or comment from line 33 to 40. In case you need to display fax number (unlikely), just remove or comment line 34

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by dupfold » Thu Sep 21, 2017 11:13 pm

Hi yodapt

Thanks for your suggestion, which I tried by completely deleting those lings of code, but unfortunately telephone still appears in header and contact page.

New member

Posts

Joined
Wed Oct 21, 2015 3:42 am

Post by yodapt » Thu Sep 21, 2017 11:22 pm

That happens if :

- you didnt clear cache in admin;
- you're using a theme other than the default;
- you're using mods
- you've changed those page's design in admin Design feature;

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by dupfold » Thu Sep 21, 2017 11:37 pm

Cleared the cache and... it worked a treat! Thank you! ;D

New member

Posts

Joined
Wed Oct 21, 2015 3:42 am

Post by PatrickG » Wed Feb 13, 2019 12:23 am

I also wanted to remove the telephone number from header and address from contact us page. I tried these steps, cleared admin and browser cache, but still it didn't work. This is a new installation of 3.0.3.1 with no mods.

https://gladstone.biz/shop/index.php?ro ... on/contact

New member

Posts

Joined
Wed Mar 18, 2015 10:32 pm

Post by xxvirusxx » Wed Feb 13, 2019 1:01 am

Refresh Ocmod, clear Theme cache, SASS cache

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by PatrickG » Thu Feb 14, 2019 6:54 pm

Thanks, that did the trick!

New member

Posts

Joined
Wed Mar 18, 2015 10:32 pm

Post by sheaton » Mon Dec 06, 2021 7:30 pm

In OC 3.0.2.0 I used:

Design>Theme Editor>Information>contact.twig

Find:

<div class="col-sm-3"><strong>{{ text_telephone }}</strong><br>
{{ telephone }}<br />
<br />
{% if fax %}
<strong>{{ text_fax }}</strong><br>
{{ fax }}
{% endif %}
</div>


Replace with :

<span class="hidden">
<div class="col-sm-3"><strong>{{ text_telephone }}</strong><br>
{{ telephone }}<br />
<br />
{% if fax %}
<strong>{{ text_fax }}</strong><br>
{{ fax }}
{% endif %}
</div>
</span>

Clear OC Cache.

Newbie

Posts

Joined
Tue May 03, 2016 1:30 am
Who is online

Users browsing this forum: Bing [Bot] and 101 guests