Post by rcn51 » Sun Oct 01, 2017 2:26 pm

Hello All

Just wondering how I can remove the following:

  • Phone number at header as well as the icon
  • Address on the contact us page
  • Phone number on the contact us page.
I have also attached screenshots if these.

I am running Version 3.0.2.0 of OpenCart with the default theme. All the guides I have found on Google seem to relate to the older versions of OpenCart and looking for .tpl files which seems to no longer exist.

Thank you in advance.

Attachments

Header Number.PNG

Header Number.PNG (3.5 KiB) Viewed 5065 times

Contact Us.PNG

Contact Us.PNG (7.52 KiB) Viewed 5065 times


Newbie

Posts

Joined
Sun Oct 01, 2017 2:17 pm

Post by yodapt » Sun Oct 01, 2017 7:39 pm


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 rcn51 » Mon Oct 02, 2017 2:31 pm

Hi

Unfortunately that did not work. I have already tried clearing my browser cache and used another browser as well. Both still presented the phone number at the header and the contact page as well as the address.

See the site www.reel-scream.co.nz

Thanks

Newbie

Posts

Joined
Sun Oct 01, 2017 2:17 pm

Post by straightlight » Wed Oct 04, 2017 3:57 am

If using the default theme, then removing the following line in the catalog/view/theme/<your_theme>/template/common/header.twig file should do it:

Code: Select all

<li><a href="{{ contact }}"><i class="fa fa-phone"></i></a> <span class="hidden-xs hidden-sm hidden-md">{{ telephone }}</span></li>
As for the contact page, in your catalog/view/theme/<your_theme>/template/information/contact.twig file, also remove this block of code:

Code: Select all

<strong>{{ text_telephone }}</strong><br>
              {{ telephone }}<br />
Clear the cache, close your browser, re-open your browser, reload your store. This should resolved the problem.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by rcn51 » Wed Oct 04, 2017 1:28 pm

Hello All

After a few hours of looking around Google, I have finally found the answer as to why my changes did not reflect on my site.

It is a stupid bug with the new version of OpenCart 3.x.x where changes you make to the .twig files don't reflect on the actual theme if you edit it via 3rd party software. Although if you edit it via the editor inside the admin panel > design > theme editor, it works.

Here is the full explanation viewtopic.php?t=186075

Thank you for all your help.

Newbie

Posts

Joined
Sun Oct 01, 2017 2:17 pm
Who is online

Users browsing this forum: Semrush [Bot] and 73 guests