WordPress.org

Support

Support » Themes and Templates » Voyage » [Resolved] facebook plugin in nav bar

[Resolved] facebook plugin in nav bar

  • 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Stephen Cui

    @scui2

    inc\lib-content.php

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

    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?

    Theme Author Stephen Cui

    @scui2

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] facebook plugin in nav bar’ is closed to new replies.
Skip to toolbar