cant hide navbar's "logout"

Go down

Solved cant hide navbar's "logout"

Post by gunsmaker on Mon 26 Jan - 7: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.

i'm not using pics on navbar and my forum using phpbb3


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

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 on Mon 26 Jan - 8: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.
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: cant hide navbar's "logout"

Post by _Twisted_Mods_ on Mon 26 Jan - 8: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;
}
avatar
_Twisted_Mods_
Helper
Helper

Male Posts : 2064
Reputation : 314
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: cant hide navbar's "logout"

Post by gunsmaker on Mon 26 Jan - 8: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

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 on Tue 27 Jan - 18:00

Topic solved and archived



avatar
APE
Administrator
Administrator

Male Posts : 12075
Reputation : 1218
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Back to top


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