Leave space
I would like to disable the "Leave space" option. Can I do this?
Maybe you may use CSS to hide that. But why you want to do that!
Shahjahan JewelΒ thanks, but if I use CSS the three dots and dropdown will still be there.
The reason is that I control enrollment in groups via WooCommerce and WPFusion and tags, so I don't want users to be able to leave manually.
Michael RoedΒ Remove the 3 dots as well. You may have to check if the current user is a non-admin.
Shahjahan JewelΒ Yes exactly, admins needs the dropdown. I will see what I can do with CSS. Thanks
Michael RoedΒ let me know if you figure out a solution for this...
was gonna tackle this issue next week
Liam A McDonaldΒ Will do. My first tries are not very positive. It's hard to write CSS code for only non-admins within FC that strips everything.
Michael RoedΒ could you use FluentSnippets to load the CSS? You can make snippets only run for certain user roles.
Jonathan GwyerΒ thanks excellent answer. That would be a great way to do this, but unfortunately it also does not work. Even a simple CSS change of font size in FC dosn't work. So FC seems to be very much locked down when it comes to these small changes.
Shahjahan JewelΒ how do we achieve these small CSS things in FC?
I just did it with CSS
Kevin HeinrichsΒ only for non-admins? If so please share π
can you share the code?
Michael RoedΒ Marco di Guglielmo
add_action('fluent_community/portal_head', function() {
?>
<style type="text/css">
.object_menu ul li:nth-child(3) {
display: none !important;
}
</style>
<?php
});
For non-admin, just take this in FluentSnippets and do this like screenshot
Kevin HeinrichsΒ thank you very much. I did not think about doing CSS as a function.
I changed this a bit so instead of .object_menu I used .menu_actions so the whole ... is removed since the Leave group action is the only link for normal users.
Thanks again π€
Michael RoedΒ Sounds great =)
Kevin HeinrichsΒ you have to add it in code brackets to prevent it from jacking up the code.
Type forward slash first to reveal the post format options.
add_action('fluent_community/portal_head', function() {
?>
<style type="text/css">
.object_menu ul li:nth-child(3) {
display: none !important;
}
</style>
<?php
});
Jeff BrigmanΒ thanks ;)