Hi Brian!,
I have not changed any links in it, they are like this after installation.
Thank you for your solution. It worked for the header menu links.
I have updated the links of header menu but when I use the same code for sidebar menu it is not working.
On this page, http://dnhgeeks.com/customers/?ccce=knowledgebase, the announcements, knowledgebase and downloads link in secondary sidebar are not correct.
I have added the following code
add_hook('ClientAreaSecondarySidebar', 1, function (MenuItem $secondarySidebar)
{
if (!is_null($secondarySidebar->getChild('Announcements'))) {
$secondarySidebar->getChild('Announcements')
->setURI('http://dnhgeeks.com/customers/?ccce=announcements');
}
if (!is_null($secondarySidebar->getChild('Knowledgebase'))) {
$secondarySidebar->getChild('Knowledgebase')
->setURI('http://dnhgeeks.com/customers/?ccce=knowledgebase');
}
if (!is_null($secondarySidebar->getChild('Downloads'))) {
$secondarySidebar->getChild('Downloads')
->setURI('http://dnhgeeks.com/customers/?ccce=downloads');
}
});
Similarly, on page http://dnhgeeks.com/customers/?ccce=announcements to change the link of RSS Feeds on primary sidebar, I have added the following code
add_hook('ClientAreaPrimarySidebar', 1, function (MenuItem $primarySidebar)
{
if (!is_null($primarySidebar->getChild('RSS Feed'))) {
$primarySidebar->getChild('RSS Feed')
->setURI('http://dnhgeeks.com/customers/?ccce=announcementsrss');
}
});
None of these two codes are working. What is the problem with these two codes ?
What will be the code to update the links in these menus ?