1. Home
  2. ReHub Theme
  3. Advanced tips and customizations
  4. Add login modal trigger to all buttons

Add login modal trigger to all buttons

If you want to open login/register modal for all users which are not logged on site, you can use next code

<script>
jQuery(document).ready(function($) {
$('body:not(.logged-in) .re_track_btn').each(function(index){
$(this).addClass('act-rehub-login-popup');
});
});
</script>

Add to theme option – general – Js code in footer