Tagged: x
-
AuthorPosts
-
June 14, 2016 at 11:47 am #1041691
I want a certain set of buttons to only show if a user is logged in and their role is “subscriber.” The page is http://schoolofbookkeeping.com/webinars/ and the button says “Register for this event.” Any idea how to make this happen?
June 14, 2016 at 3:43 pm #1042081Hi there,
Thanks for writing in! You can use our protected shortcode to hide certain content from site visitors who are not logged in. Follow the example below.
[x_protect][x_button type="real" shape="square" size="jumbo" href="#example" title="Example"]Square Button[/x_button][/x_protect]
Hope that helps.
June 14, 2016 at 4:11 pm #1042147Does this provide a login URL to let them know something is hiding? I used CSS to hide it and its working but there’s no way to let the user know to login to see the buttons.
June 14, 2016 at 4:13 pm #1042148I tried this and it did provide a login but then redirected to wp-login.php after entering subscriber data.
June 15, 2016 at 2:33 am #1042805Hi there,
Thanks for updating. Yes the [x_protect] shortcode will ask the user to login to see the content. So I guess the CSS solution is what you want here. But I am not sure if we could track the status “subscriber” for the user, “logged in” could be tracked I guess. You can share your credentials for a subscriber account so that we can have a look.
Cheers!
-
AuthorPosts