Skip to:
Content
Pages
Categories
Search
Top
Bottom

Insert the link in the admin bar


  • Reiner
    Participant

    @reiner1

    Hi there,

    I would like to include a help page here.
    Is there a plugin for this?
    Or a snippet that I add to the functions.php and my template?

    Help Page

    It would be nice if there was a solution.

    thank you

    Reiner

Viewing 2 replies - 1 through 2 (of 2 total)

  • Reiner
    Participant

    @reiner1

    Hi
    Does nobody have an idea?
    It would be nice if someone had a solution for this question.
    Nonetheless, thank you…


    Anonymous User 18187419
    Inactive

    @anonymized-18187419

    Hi Reiner, try this, add it to functions.php or use a Code Snippets plugin.
    Of course, change the ‘href’ to point at your help page.
    Cheers!

    add_action( 'admin_bar_menu', 'add_messages_help_element', 999 );
    
    function add_messages_help_element( $wp_admin_bar ) {
     $args = array(
     'title' => 'Help',
     'href'  => 'https://your-help-page-url',
     'parent' => 'my-account-messages'
     );
     $wp_admin_bar->add_menu( $args );
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar