Jump to content
drupopuppis

[Resolved] How to add a link on foundation skin top menu

Recommended Posts

I can't seem to find a a link from the admin panel where to edit the top menu. I haven't done any changes to this website in years and do not remember how to simply add links or edit the top menu bar..?

Thanks all

Share this post


Link to post
Share on other sites

The 'top menu' is the "Navigation" bar (or sometimes "Shop by Category" box).

The menu is built from all the categories (enabled and unhidden) there are.

There are also three special items: Home, Sale Items, and Gift Certificates.

To add any other links to this group would require editing the skin template "box.navigation.php".

  • Like 2

Share this post


Link to post
Share on other sites

I see, great, i will have a play with it .... I must have done that already as I have some custom links already, anyway, on my brief look at the navigation file I could not see it today. I will have a better check and report my findings.

Share this post


Link to post
Share on other sites
3 hours ago, bsmither said:

The 'top menu' is the "Navigation" bar (or sometimes "Shop by Category" box).

The menu is built from all the categories (enabled and unhidden) there are.

There are also three special items: Home, Sale Items, and Gift Certificates.

To add any other links to this group would require editing the skin template "box.navigation.php".

I have made some modifications on the box.navigation.php but they are not shown on the  live website once uploaded to the server, the template I am using is the foundation, anywhere else I should look for? I did not see a file called "Shop by Category".

Share this post


Link to post
Share on other sites

The "Shop by Category" reference is the default title of the sidebox of nav links on skins designed for CC5 (which still work with CC6). It is not a "file", per se. You can see this in the MarketPlace.

The Foundation skin does not use a title for the top menu bar. A 'title' would be what you see in the "Best Sellers" box, or "Featured Product" box.

CubeCart uses a template rendering engine that will cache compiled templates - needing only then to fill in the variables with values. When making edits to templates, you will need to clear the cache of already compiled templates.

One way to do this is in admin, Maintenance, Rebuild tab, check Clear cache, click Submit. Another way is to make the browser request this URL:
www.store.com/index.php?debug-cache-clear=true

 

  • Like 1

Share this post


Link to post
Share on other sites

Out of curiosity, I don't do a lot of mods to my cart. But I have added a link in my box.navigation.php and it works great, however, is there a way to change the background for just this link in the navigation menu?

Share this post


Link to post
Share on other sites

An easy way is to add the style attribute to the link itself:

<a itemprop="url" href="/my_special_link.html" title="My Special Link" style="background:red;">My Special Link</a>

 

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×