Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to create a message for non-logged in users

  • Hello.

    I was just wondering if anyone knows how to do this…

    I want to include a little message at the top of my template, which will only appear for the people who are not logged in.

    is there an easy way of checking whether someone is logged in?

Viewing 1 replies (of 1 total)

  • chrishajer
    Participant

    @chrishajer

    Use <?php if ( !bb_is_user_logged_in() ) : ?> then if that comes back true (they’re not logged in) display your message.

    Examples of this can be found in the front-page.php template file.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar