Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1465595

    HI
    I am setting up a forum with bbpress and want it hidden in the menu for logged-out users.
    The forums themselves are only visble to logged in members, and I set the main forum page
    to private but I am still seeing it in the menu under LOGIN > FORUM.
    How can I hide this?

    Also – the forum pages themselves don’t have a title or heading at the top – how can I show the name of the forum at the top?

    ethanks
    Nancy

    • This topic was modified 1 month ago by Munford.
    • This topic was modified 1 month ago by Munford.
    #1465627

    Hey Munford,

    Thank you for the inquiry.

    You can use a plugin to control the visibility of the menu items based on certain conditions. Please check the link below:

    // https://wordpress.org/plugins/if-menu/

    Basic set of visibility rules
    – User state User is logged in
    – User roles Admin Editor Author etc
    – Page type Front page Single page Single post
    – Is Archive page (year, category, search results, etc)
    – Visitor device Is Mobile

    Best regards,
    Ismael

    #1465644

    ok I will try that plugin.
    Is there a solution to getting the forum name on the bbpress forum pages?
    thanks for your help
    Nancy

    #1465761

    Hi,

    Thank you for the update.

    Try to add this hook in the functions.php file to display the title before the forum content:

    add_action('bbp_template_before_single_forum', 'ava_display_forum_title');
    
    function ava_display_forum_title() {
        if (bbp_is_single_forum()) {
            echo '<h2 class="av-forum-title">' . bbp_get_forum_title() . '</h2>';
        }
    }

    Best regards,
    Ismael

    #1465764
    This reply has been marked as private.
    #1465769

    Hi,

    No problem! Let us know if you have more questions.

    Have a nice day.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘forum page set to private still visible in menu’ is closed to new replies.