Ever wonder how to change where the very top and very bottom links actually go to?
I've been asked a few times not how to change what they say, but when clicked on where they actually go.
Occasionally someone wants Links to go to yoursite.com/links.html or a totally, instead of yoursite.com/links.php.
This one is relatively fast and easy. Only one file to change slightly, and no database editing.
Backup just in case /inc/design.inc.php to your local PC.
Then open up /inc/design.inc.php and find the following:
// array of top and bottom links
$aMainLinks = array(
'Home' => array( 'href' => 'index.php', 'Title' => '_Home' ),
'About' => array( 'href' => 'about_us.php', 'Title' => '_About Us' ),
'Privacy' => array( 'href' => 'privacy.php', 'Title' => '_Privacy' ),
'Termsofuse' => array( 'href' => 'terms_of_use.php', 'Title' => '_Terms_of_use' ),
'Services' => array( 'href' => 'services.php', 'Title' => '_Services' ),
'FAQ' => array( 'href' => 'faq.php', 'Title' => '_FAQ' ),
'Articles' => array( 'href' => 'articles.php', 'Title' => '_Articles' ),
'Stories' => array( 'href' => 'stories.php', 'Title' => '_Stories2' ),
'Links' => array( 'href' => 'links.php', 'Title' => '_Links' ),
'News' => array( 'href' => 'news.php', 'Title' => '_News' ),
'Aff' => array( 'href' => 'affiliates.php', 'Title' => '_Affiliates', 'Check' => 'return ( getParam("enable_aff") == "on" );' ),
'Invitefriend' => array( 'href' => 'tellfriend.php', 'Title' => '_Invite a friend', 'onclick' => 'return launchTellFriend();' ),
'Contacts' => array( 'href' => 'contact.php', 'Title' => '_Contacts' ),
'Browse' => array( 'href' => 'browse.php', 'Title' => '_Browse Profiles' ),
'Feedback' => array( 'href' => 'story.php', 'Title' => '_Add story' ),
'ContactUs' => array( 'href' => 'contact.php', 'Title' => '_contact_us' ),
'Bookmark' => array( 'href' => '#', 'Title' => '_Bookmark', 'onclick' => 'addBookmark(); return false;' ),
);
Now if I want to change for example when I click on Links. If I want it to go to yoursite.com/links.html instead. I would change:
'Links' => array( 'href' => 'links.php', 'Title' => '_Links' ),
To:
'Links' => array( 'href' => 'links.html', 'Title' => '_Links' ),
Save the changes and re-upload overwriting the original.
Do the same to any other links. Refresh page to verify your changes.