The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

cant hide navbar's "logout"

4 posters

Go down

Solved cant hide navbar's "logout"

Post by gunsmaker Mon 26 Jan - 5:58

hello, i've tried using this code in css
Code:
a[href="/login?logout"] {
  display: none !important;
}

but nothing happened, i also cleared the cache and reload the page, still nothing happened.
cant hide navbar's "logout" Screen12
i'm not using pics on navbar and my forum using phpbb3


Last edited by gunsmaker on Tue 27 Jan - 3:24; edited 1 time in total
avatar
gunsmaker
Forumember

Posts : 34
Reputation : 1
Language : English and Indonesian

http://tcga.forumn.org

Back to top Go down

Solved Re: cant hide navbar's "logout"

Post by Ange Tuteur Mon 26 Jan - 6:08

Hello @gunsmaker,

Try this :
Code:
#logout { display:none }

I think the problem with your last code is that you're missing the whole portion of the URL. e.g. the tid and key

If you add the caret before the equal sign, it'll work.
a[href="/login?logout"] => a[href^="/login?logout"]

The caret is for selecting elements whose attribute begins with that specific value.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: cant hide navbar's "logout"

Post by _Twisted_Mods_ Mon 26 Jan - 6:11

have to remove the / and a a * before = witch means it checks to see if it contains that if you just use = it means url has to be a 100% mach also another useful one is ^= witch means starts with

Code:


a[href*="login?logout"] {
  display: none !important;
}
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: cant hide navbar's "logout"

Post by gunsmaker Mon 26 Jan - 6:46

Ange Tuteur wrote:Hello @gunsmaker,

Try this :
Code:
#logout { display:none }

I think the problem with your last code is that you're missing the whole portion of the URL. e.g. the tid and key

If you add the caret before the equal sign, it'll work.
a[href="/login?logout"] => a[href^="/login?logout"]

The caret is for selecting elements whose attribute begins with that specific value.

_Twisted_Mods_ wrote:have to remove the / and a a * before = witch means it checks to see if it contains that if you just use = it means url has to be a 100% mach also another useful one is ^= witch means starts with

Code:


a[href*="login?logout"] {
  display: none !important;
}

only this code is working
Code:
#logout { display:none }
the rest are not changing anything, maybe it has clash with my theme or something like that.

by the way, thankyou @Ange Tuteur and @_Twisted_Mods_ for helping, i'll remember this * and ^ symbol, its new for me. Smile

Solved
avatar
gunsmaker
Forumember

Posts : 34
Reputation : 1
Language : English and Indonesian

http://tcga.forumn.org

Back to top Go down

Solved Re: cant hide navbar's "logout"

Post by Ape Tue 27 Jan - 16:00

Topic solved and archived


cant hide navbar's "logout" Left1212cant hide navbar's "logout" Center11cant hide navbar's "logout" Right112
cant hide navbar's "logout" Ape_b110
cant hide navbar's "logout" Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19435
Reputation : 2010
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum