Post by ri2k » Wed Aug 10, 2022 11:40 am

I am trying to add additional links under 'Extras' in the footer. I saw a few posts about this for OC 1x and 2x, but I can't seem to find any posts for OC 3x.
I followed the instructions from other posts for OC 1x, and edited the catalog/view/theme/default/template/common/footer.twig file as follows:

I edited this:

Code: Select all

      <div class="col-sm-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>

To this:

Code: Select all

      <div class="col-sm-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>
          <li><a href="https://mysite.com/blogs">Blogs</a></li> 
        </ul>
      </div>
But when I save and refresh modification, it doesn't change anything. Is there a solution for this? Any help would be appreciated. Thanks :)
Last edited by ri2k on Thu Aug 11, 2022 11:36 am, edited 1 time in total.

New member

Posts

Joined
Mon Aug 24, 2020 7:31 pm

Post by thekrotek » Wed Aug 10, 2022 2:50 pm

If it doesn't change anything, then you still see the cached/old copy. Maybe it's your browser's cache or the one you cleaned weren't actually cleaned.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by ri2k » Wed Aug 10, 2022 10:53 pm

paulfeakins wrote:
Wed Aug 10, 2022 5:01 pm
But did you clear all the caches?
https://www.antropy.co.uk/blog/how-to-c ... t-3-0-2-0/
Thanks for your reply.
I cleared Module Cache, Theme Cache, SASS Cache, and tried 3 different browsers.

Is there something wrong with my code? Or, any other files I need to edit?

New member

Posts

Joined
Mon Aug 24, 2020 7:31 pm

Post by thekrotek » Wed Aug 10, 2022 11:39 pm

The code itself is fine. Maybe you added it in a wrong place - for example, wrong theme folder.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by ri2k » Thu Aug 11, 2022 12:38 am

thekrotek wrote:
Wed Aug 10, 2022 11:39 pm
The code itself is fine. Maybe you added it in a wrong place - for example, wrong theme folder.
I checked, it's correct path. I use default theme and I edited the '/catalog/view/theme/default/template/common/footer.twig'. Wonder what I'm doing wrong or what's preventing the change.

New member

Posts

Joined
Mon Aug 24, 2020 7:31 pm

Post by thekrotek » Thu Aug 11, 2022 12:55 am

ri2k wrote:
Thu Aug 11, 2022 12:38 am
I checked, it's correct path. I use default theme and I edited the '/catalog/view/theme/default/template/common/footer.twig'. Wonder what I'm doing wrong or what's preventing the change.
Share a link to your store.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by by mona » Thu Aug 11, 2022 8:08 am

If you make edits in the theme editor - you need to make any subsequent edits in the theme editor.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by ri2k » Thu Aug 11, 2022 11:36 am

by mona wrote:
Thu Aug 11, 2022 8:08 am
If you make edits in the theme editor - you need to make any subsequent edits in the theme editor.
Editing from theme editor from the admin panel worked!
Although editing the footer.twig file seemed to have had no effect.
Thank you for your help!

New member

Posts

Joined
Mon Aug 24, 2020 7:31 pm
Who is online

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