The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

cant hide navbar's "logout"

View previous topic View next topic Go down

Solved cant hide navbar's "logout"

Post by gunsmaker on January 26th 2015, 6:58 am

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 January 27th 2015, 4:24 am; 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 January 26th 2015, 7:08 am

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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: cant hide navbar's "logout"

Post by _Twisted_Mods_ on January 26th 2015, 7:11 am

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_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: cant hide navbar's "logout"

Post by gunsmaker on January 26th 2015, 7:46 am

@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 January 27th 2015, 5:00 pm

Topic solved and archived




APE
Manager
Manager

Male Posts : 8614
Reputation : 748
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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

Back to top Go down

View previous topic View next topic Back to top


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