Alternative text in NaviMenu

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3765 Reply
    Marcel
    Guest

    Is it possible to put some alternative text (script code) in de primairy navimenu?
    I want to use the empty space to show the Facebook and twitter followers

    #3766
    Ron
    Keymaster

    You can use the ‘frontier_before_menu’ or the ‘frontier_after_menu’ action hooks to add things before and after the menu.

    Here’s an example that you can add on the functions.php (preferably on a child-theme)

    function stuff_after_menu() {
    ?>
    <div id="stuff-after-menu" >
         <div class="addthis_toolbox addthis_32x32_style addthis_default_style">
    	<a class="addthis_button_facebook_follow" addthis:userid="YOUR-USERNAME"></a>
    	<a class="addthis_button_twitter_follow" addthis:userid="YOUR-USERNAME"></a>
    	<a class="addthis_button_google_follow" addthis:userid="YOUR-USERNAME"></a>
    	<a class="addthis_button_youtube_follow" addthis:userid="YOUR-USERNAME"></a>
         </div>
         <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js"></script>
    </div>
    <?php
    }
    add_action( 'frontier_after_menu', 'stuff_after_menu' );

    Anything you add between ?> and <?php will display on the right side of the menu.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Alternative text in NaviMenu
Your information: