- This topic has 2 replies, 2 voices, and was last updated 10 years, 3 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › Compact login widget – Add class when you are logged
Tagged: login widget, member login
Hi,
I just want to change the CSS of the compact login form when i am login and when i’m not.
It is possible to add a class or ID to the compact login form to easily style it if logged or not ?
I have put this to my header.php
<div class=”bloc-login”>
<?php echo eMember_compact_login_widget(); ?>
</div>
Thanks for help
You can do that by using the functions explained in the following documentation:
https://www.tipsandtricks-hq.com/wordpress-membership/wp-emember-miscellaneous-tweaks-248
Let me know if that helps.
Yeah thanks for all ! it works
It was for the Login popup, to overwrite one z-index property.
I put this in the header.php and it works
<style>
.eMember_compact_login{
<?php
$emember_auth = Emember_Auth::getInstance();
//User is logged in so add your conditional code here
$membership_level = $emember_auth->getUserInfo(‘membership_level’);
if($membership_level == 0)
{
echo ‘z-index: inherit;’;
}
?>
}
</style>
Thanks for all, have a good day or night