drupopuppis Posted March 24, 2017 Share Posted March 24, 2017 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 Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 24, 2017 Share Posted March 24, 2017 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". 2 Quote Link to comment Share on other sites More sharing options...
drupopuppis Posted March 24, 2017 Author Share Posted March 24, 2017 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. Quote Link to comment Share on other sites More sharing options...
drupopuppis Posted March 24, 2017 Author Share Posted March 24, 2017 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". Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 24, 2017 Share Posted March 24, 2017 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 1 Quote Link to comment Share on other sites More sharing options...
drupopuppis Posted March 24, 2017 Author Share Posted March 24, 2017 @bsmither Bingo.....! Case solved. Cache cleared and edited file is now visible. Many Thanks..! Quote Link to comment Share on other sites More sharing options...
djcaseanova Posted April 19, 2018 Share Posted April 19, 2018 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? Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 19, 2018 Share Posted April 19, 2018 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> 1 Quote Link to comment Share on other sites More sharing options...
AeroLogistica Posted March 14, 2023 Share Posted March 14, 2023 Guys thank you, it worked like a charm! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.