How would I remove the "Search" without messing up the positioning?
Posted January 21st 2012, 7:29am
I've tried it before by making the attribute hidden, it messed up some of positioning making the other links stretch a little.

Image
φ
Posts: 237
Joined: October 29th 2011, 11:00pm
Location: england, united kingdom, stoke on trent
Likes Given: 20
Likes Received: 4
How would I remove the "Search" without messing up the positioning?
Posted January 22nd 2012, 10:15pm
[url=/t8602-removing-links-from-your-navbar]http://www.diondesigns.org/t8602-removing-links-from-your-navbar[/url]
φ
Posts: 163
Joined: August 5th 2011, 11:00pm
Location: Pakistan
Likes Given: 34
Likes Received: 3
How would I remove the "Search" without messing up the positioning?
Posted January 23rd 2012, 3:04am
The .remove messes up the position of the nab links
φ
Posts: 237
Joined: October 29th 2011, 11:00pm
Location: england, united kingdom, stoke on trent
Likes Given: 20
Likes Received: 4
How would I remove the "Search" without messing up the positioning?
Posted January 23rd 2012, 5:06am
I had that problem, what you need to do is, when you hide the search, move it down past your log out in the structure and it works perfectly!
φ
Posts:
Avatar
Guest
How would I remove the "Search" without messing up the positioning?
Posted January 23rd 2012, 8:43am
does adding this to a function still mess up the spacing:

document.getElementById('i_icon_mini_search').parentNode.style.display="none";
φ
Posts: 509
Joined: July 9th 2011, 11:00pm
Location: England
Likes Given: 15
Likes Received: 26
How would I remove the "Search" without messing up the positioning?
Posted January 23rd 2012, 10:42am
nope :(
φ
Posts: 237
Joined: October 29th 2011, 11:00pm
Location: england, united kingdom, stoke on trent
Likes Given: 20
Likes Received: 4
How would I remove the "Search" without messing up the positioning?
Posted January 23rd 2012, 10:54am
@Ryan: What about this one ?
$('#page-header .navlinks a[href="/search"]').css('display','none');

punbb
$('#pun-navlinks a.mainmenu[href="/search"]').css('display','none');
φ
Posts: 209
Joined: September 10th 2011, 11:00pm
Location: SC, USA
Likes Given: 8
Likes Received: 8
How would I remove the "Search" without messing up the positioning?
Posted January 23rd 2012, 11:32am
Ryan did you try what I posted? I had that exact same problem, when you hide the actual word some space remains!!! Simply move this space, down past the login option, it worked for me
φ
Posts:
Avatar
Guest
How would I remove the "Search" without messing up the positioning?
Posted January 23rd 2012, 1:30pm
Change mine to this:

document.getElementById('i_icon_mini_search').parentNode.parentNode.style.display="none";


I had a proper look at the search link element and see that the LI element it resides in is two parentNodes above.

A better alternative would be putting this in your CSS:
.navlink li>a[href="/search"] { display: none }
φ
Posts: 509
Joined: July 9th 2011, 11:00pm
Location: England
Likes Given: 15
Likes Received: 26
How would I remove the "Search" without messing up the positioning?
Posted January 23rd 2012, 2:14pm
ok what the hell...wht s the differnce b/w

.navlink li>a[href="/search"] { display: none }

.navlink li a[href="/search"] { display: none }
φ
Posts: 163
Joined: August 5th 2011, 11:00pm
Location: Pakistan
Likes Given: 34
Likes Received: 3
1
#11
How would I remove the "Search" without messing up the positioning?
Posted January 23rd 2012, 3:12pm
ioncube said:
ok what the hell...wht s the differnce b/w

.navlink li>a[href="/search"] { display: none }

.navlink li a[href="/search"] { display: none }


The > selector selects a direct child (first nesting level)
φ
Posts: 64
Joined: June 17th 2011, 11:00pm
Location: 127.0.0.1/
Likes Given: 3
Likes Received: 2
How would I remove the "Search" without messing up the positioning?
Posted January 24th 2012, 10:19am
still messes up where the search "once was" lollll
φ
Posts: 237
Joined: October 29th 2011, 11:00pm
Location: england, united kingdom, stoke on trent
Likes Given: 20
Likes Received: 4
How would I remove the "Search" without messing up the positioning?
Posted January 25th 2012, 1:30pm
The not-so-smart folks at eToxic chose to embed non-breaking spaces into each navbar element as opposed to using CSS. That means you will have positioning problems if you remove only the navbar links themselves. The solution is to get rid of the forumotion navbar structure, and then remove the links. You might want to look at the drop-down navbar script to see how to do this.
φ
Posts: 1599
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
Topic locked
13 posts

Who is online

Users browsing this forum: No registered users and 0 guests