WordPress.org

Ready to get started?Download WordPress

Forums

Voyage
[resolved] facebook plugin in nav bar (4 posts)

  1. bachey
    Member
    Posted 1 year ago #

    Hi,

    i'm trying to but a facebook like button in my nav-bar by changing the header.php. I found out that the function voyage_nav_menu() calls the navigation bar. But I cant find the file where this function is defined.
    Can anyoe help me please?

    Regards

  2. Stephen Cui
    Member
    Theme Author

    Posted 1 year ago #

    inc\lib-content.php

    BTW I have dedicated support forum:
    http://www.voyagebc.com/support

  3. bachey
    Member
    Posted 1 year ago #

    Thanks.

    As I dont know much about php, I am still unable to implement the following code.

    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    
    <div class="fb-like"  data-href="#" data-send="false" data-width="300" data-show-faces="false" data-font="arial"></div>
    <hr>

    Can you tell me where to insert these lines?

  4. Stephen Cui
    Member
    Theme Author

    Posted 1 year ago #

    Facebook has its official plugin. There are other plugins to support social sharing. Since you do not know much about php, I recommend you not to modify header.php at all. Voyage Theme and other plugins should be able to help you.

    If you do not like plugin, you can simply copy the codes into a text widget in Navigational Widget Area (or Header Widget Area) in Voyage Theme.

    Again I have dedicated support forum:

    http://www.voyagebc.com/support

    and you can post your URL there for better support.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.