We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ ! ] Hide a css class to guests
Topic Started: Dec 8 2014, 02:16 AM (230 Views)
nogats07
Member Avatar
Member
[ *  * ]
I need a code that will hide a particular css class to guests
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<script type="text/javascript">
if ($.zb.logged_in === false) {
$('CLASS').removeClass('CLASS_NAME');
}
</script>
Try that, change CLASS and CLASS_NAME as necessary.
Offline Profile Goto Top
 
nogats07
Member Avatar
Member
[ *  * ]
Like this ???

<script type="text/javascript">
if ($.zb.logged_in === false) {
$('#search').removeClass('#search');
}
</script>
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
#search is an ID, is that what you were wanting to remove instead?

.search would be a class.
Offline Profile Goto Top
 
Helena
Member Avatar
M is for Mod

This request has gone a lengthy period of time without any new activity, therefore it is being marked as expired.
Thank you.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic