Removing links from your navbar
Posted January 21st 2012, 5:05pm
I would like to reduce the amount of links in the main nav bar, I had this code before but for the life of me I cannot seem to locate it Image

I would like to remove:
Calander
FAQ
Memberslist
Usergroups
Gallery


Is this easy to do?
φ
Posts:
Avatar
Guest
Removing links from your navbar
Posted January 21st 2012, 5:34pm
The following will remove the navbar links you listed:

$('#page-header .navlinks a[href="/calendar"]').remove();
$('#page-header .navlinks a[href="/faq"]').remove();
$('#page-header .navlinks a[href="/memberlist"]').remove();
$('#page-header .navlinks a[href="/groups"]').remove();
$('#page-header .navlinks a[href="/gallery/index.htm"]').remove();

Add it to any script you already have, inside the $(function(){}); block.
φ
Posts: 1599
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
Removing links from your navbar
Posted January 21st 2012, 6:00pm
Thank you very much Dion :D
φ
Posts:
Avatar
Guest

Who is online

Users browsing this forum: No registered users and 0 guests