You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Pages: 1
Is it possible, to add links to the horizontal category menu to outside urls? And if so, how would you go about doing it.?
Offline
I would expect you need to edit the Skin Widget CMS Main Menu include and just add the hardcoded links before or after the first level foreach statement.
Offline
Was this correct?
I have looked at the Skin Widget CMS Main Menu and see no where to code outside links?
I need to add some on too
Offline
Thanks but whereabouts? I have added a simple link at top after <php before and it doesn't work... just to check this is the horizontal category drop down menu? is there another name for this as hard to find info on it.
Last edited by mixer25 (01-03-2014 10:24:39)
Offline
Assuming you want to add a static link to the end of the menu, add something like:
print '<li><a href="SOME_URL">SOME_TEXT</a></li>' . $eol;
Right above (at the bottom):
print '</ul>' . $eol . $eol;
Offline
Thanks Nick, but just tried it and didn't work, I put this test text directly above the bit you mentioned and nothing shows at all?
I did this in Includes area and Skin Widget CMS Main Menu
} // End of foreach statement. print '<li><a href="http://www.google.co.uk/">Test Area</li>' . $eol; print '</ul>' . $eol . $eol; if (empty($joomla_active)) { print '</div>' . $eol; if (!(empty($mobile_active))) { print '</div>' . $eol; } // End of if statement. if (empty($ajax_active)) { print '</div>' . $eol . $eol; } // End of if statement. } // End of if statement. ?>
Last edited by mixer25 (01-06-2014 12:16:51)
Offline
Sorry but this still doesn't work?
Nothing shows at all on the nav bar with catagories.
Last edited by mixer25 (01-15-2014 19:28:56)
Offline
Check your page source - is the link being printed, but perhaps you're not seeing it because the other menu items have pushed it out of view?
Offline
No, defo not there... just to be clear I am on about the main bar running across top with drop downs on it, used for catagories as standard?
Offline
You can edit/add to the horizontal navigation bar here:
/apps/cms/CMS/includes/skinwidgetpages.php
Offline
It depends - if they're showing categories, you'd edit {private}/apps/ecom/ECOM/includes/shinwidgetcategories.php, but if pages are showing, you'd edit {private}//apps/cms/CMS/includes/skinwidgetpages.php.
Offline
webmaster wrote:
Assuming you want to add a static link to the end of the menu, add something like:
Code:
print '<li><a href="SOME_URL">SOME_TEXT</a></li>' . $eol;Right above (at the bottom):
Code:
print '</ul>' . $eol . $eol;
Nick,
I'd like the added link to open in a new tab or window.
Offline
west4 wrote:
Hi,
this should workCode:
<a href="SOME_URL" target="_blank">Bruce.
I am wanting to add the new link to the top menu
Home | Shopping Cart | Wish List| Checkout | Site Map | Contact | Blog
Blog being the new addition.
Offline
Nigel fixed it for me with his advice, thank you.
Offline
Pages: 1