Site logo

[Support request] Show button when only loged in.

Home Forums Support [Support request] Show button when only loged in.

Home Forums Support Show button when only loged in.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2539492
    Jusung

    Hello.

    On the link, I have made 2 buttons.
    I just need to understand this function.

    when Loged in, I only wanna show Button A
    and
    when Loged out, I only wanna show Button B.

    Is there a way to make this?

    On the menu, I am using this function cuz wp-member allows me to do this very easily on the menu.
    Am I supposed to use php code to make this work?

    #2539676
    David
    Staff
    Customer Support

    Hi there,

    if you’re using a Block Element ( or Hook element ) to add those, then edit the Display Rules -> User, there you can set Logged In or Logged Out

    #2539732
    Jusung

    So, I have to create 2 elements. right?
    and show 1 elements when loged in
    and show 1 elements when loged out.

    Is there a way to make this in one element?

    #2539774
    David
    Staff
    Customer Support

    Yes, 2 elements are required.

    if it has to be one element, then try this plugin:
    https://wordpress.org/plugins/block-visibility/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.