Post by Mariogs » Fri Mar 28, 2025 9:55 pm

I have installed opencart 3.0.4 and I like to add another opetion at the top at header "gmail" and it will open gmail when I click it. Not another page, but on the same page.
Is that possible?
I tried to change o catalog/view/theme/your-theme/template/common/header.twig.
but that didn't worked even when I clear cache.

New member

Posts

Joined
Mon Dec 02, 2024 12:53 am

Post by ADD Creative » Sat Mar 29, 2025 12:42 am

Editing that file would work if it's the front end you want to add to. Did you refresh modifications? It it already edited in the theme editor?

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by grgr » Sat Mar 29, 2025 7:31 am

You want to add a link to the top of your store that will take customers away from your site - specifically gmail that not everyone uses?

I'm dead curious why you would want to do that, sorry, I'm just really nosey.

Anyway, try refreshing the Modification Cache as it is possible that there a mod already editing that file.

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by Mariogs » Wed Apr 02, 2025 6:50 pm

grgr wrote:
Sat Mar 29, 2025 7:31 am
You want to add a link to the top of your store that will take customers away from your site - specifically gmail that not everyone uses?

I'm dead curious why you would want to do that, sorry, I'm just really nosey.

Anyway, try refreshing the Modification Cache as it is possible that there a mod already editing that file.
that was just a dumb example, not the real thing, I will add a link to opencart site, but I need to know how to.

New member

Posts

Joined
Mon Dec 02, 2024 12:53 am

Post by Mariogs » Wed Apr 02, 2025 6:51 pm

ADD Creative wrote:
Sat Mar 29, 2025 12:42 am
Editing that file would work if it's the front end you want to add to. Did you refresh modifications? It it already edited in the theme editor?
no it is not edited in theme editor. where to edit that.
yes I did refresh mods.

New member

Posts

Joined
Mon Dec 02, 2024 12:53 am

Post by by mona » Wed Apr 02, 2025 7:22 pm

Using the theme editor and ocmod together is not advised unless you understand what you are doing. This could already be the cause of your problem.

You use the correct code, change the correct file, in the correct place, clear ALL cache - that is the process.

Your post is not clear if you are having an issue with opening in another page or the link not appearing.
It has been presumed the link is not appearing - please confirm.

Your post is not clear if you are changing the correct file.
It has been presumed you are changing the original file. Please confirm you are not changing a modification file.

Your post is not clear where “at the top at header”. Please be more clear.


- You have edited something using the theme editor and this will effect your current edit.
admin => design => theme editor

- You already have an edit on that code in ocmod

- You have caching on your host or theme etc

- You are adding it in the wrong place.

- You are changing the wrong file

If you want further assistance be more clear about your question, post your site, or ask for developer to look at it. The cost would be negligible you should consider it if you are stuck.

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 Mariogs » Wed Apr 02, 2025 7:36 pm

by mona wrote:
Wed Apr 02, 2025 7:22 pm
Using the theme editor and ocmod together is not advised unless you understand what you are doing. This could already be the cause of your problem.

You use the correct code, change the correct file, in the correct place, clear ALL cache - that is the process.

Your post is not clear if you are having an issue with opening in another page or the link not appearing.
It has been presumed the link is not appearing - please confirm.

Your post is not clear if you are changing the correct file.
It has been presumed you are changing the original file. Please confirm you are not changing a modification file.

Your post is not clear where “at the top at header”. Please be more clear.


- You have edited something using the theme editor and this will effect your current edit.
admin => design => theme editor

- You already have an edit on that code in ocmod

- You have caching on your host or theme etc

- You are adding it in the wrong place.

- You are changing the wrong file

If you want further assistance be more clear about your question, post your site, or ask for developer to look at it. The cost would be negligible you should consider it if you are stuck.
yes there is no link at the top what I want
exactly what I did You use the correct code, change the correct file, in the correct place, clear ALL cache - that is the process.
and I didn't use theme editor to change something but I have installed some of extensions.
I am changing original file which I didn't change before.
site sellyour3d.com
is there any extension for, to add more links?
here

Attachments

???
2025-04-02 13_35_30-SELL YOUR 3D – Google Chrome.png

New member

Posts

Joined
Mon Dec 02, 2024 12:53 am

Post by by mona » Wed Apr 02, 2025 7:52 pm

FYI: The correct term for that would be editing the nav bar in the header - thank you for the screenshot

It will not be working because you already have a modification on it. This will mean that you want to put it somewhere you cant because of the modification.
Try changing where you want to put it still in the nav bar but not where you are putting it - just for a test at least.
If this is the cause you will need to edit the modification itself to add it or create another modification.

There probably is an extension, maybe even free, but due to your purpletree it will cause a conflict so probably not the best idea either.

Finally - maybe you are just doing it wrong, paste the code of the nav bar you have tried.
and please put it in </> tags which is the 5th box along just under the subject header. Highlight all the code part and press that button.

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 by mona » Wed Apr 02, 2025 8:07 pm

Just as another thought. I do have an extension that adds links to all sorts of places - but all are independent of Opencart - so not the nav bar or the menu etc.

https://www.opencart.com/index.php?rout ... n_id=33048
This might be a good option for you since your nav bar is quite long, but it depends what links you want to add I suppose.

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 nonnedelectari » Wed Apr 02, 2025 8:38 pm

Be aware that with so many clickable icons in that header, on a mobile, you will need a needle to be able to select any of them.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by SohBH » Thu Apr 03, 2025 3:21 pm

You have installed some extensions. Try removing them and refresh the Modification Cache.

View all extensions | Request custom work | Pricing | Contact Me


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia
Who is online

Users browsing this forum: lockiedownunder, o3445 and 82 guests