Archived

This topic is now archived and is closed to further replies.

  • 0

Business Branding Adding Skype Chat button next to social icons

Question

Posted · Report post

I'd like to add a skype chat button (code below) to my social buttons. I'm using the Business Branding plugin . Any ideas how i could add this? Or any other suggestions on how to get it on to the branding section without leaving huge amounts of white space?

<script type="text/javascript" src="http://cdn.dev.skype.com/uri/skype-uri.js"></script>
<div id="SkypeButton_Chat_nickd.miratrix_1">
  <script type="text/javascript">
    Skype.ui({
      "name": "chat",
      "element": "SkypeButton_Chat_nickd.miratrix_1",
      "participants": ["nickd.miratrix"],
      "imageSize": 32
    });
  </script>
</div>

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

Hi,

 

Using a hook is the best way to do this.  If you are a Plus Member, Hooker is a free plugin that will do the hook for you. Go to your Pagelines --> Dashboard --> Plus and install Hooker, then make sure to Activate it in your plugins.  Then look for the pagelines_branding_icons_end and add your code. You will need to use some css to position it the way you want.

 

If you aren't a plus member then either use the Pagelines Customize plugin (free) or create a child theme and in the functions.php file put this code:

add_action('pagelines_branding_icons_end', 'my_skype_button');
 
	function my_skype_button(){		
		?>
		<script type="text/javascript" src="http://cdn.dev.skype.com/uri/skype-uri.js"></script>
			<div id="SkypeButton_Chat_nickd.miratrix_1">
			  <script type="text/javascript">
			    Skype.ui({
			      "name": "chat",
			      "element": "SkypeButton_Chat_nickd.miratrix_1",
			      "participants": ["nickd.miratrix"],
			      "imageSize": 32
			    });
			  </script>
			</div>
		<?php 
	}

Hope that helps.

 

Ellen

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

 

Business Branding is a third party section, therefore I have moved your topic to our store forums, where the developer will reply to your topic. However, you will most likely need to use a hook to add your custom button.

 

For more information on hooks, please see our documentation - http://support.pagelines.me/docs/customization/hooks/

Share this post


Link to post
Share on other sites

Posted · Report post

If you consider this topic resolved, make sure you hit the "mark resolved" button. Otherwise let us know how we can help! :)

Share this post


Link to post
Share on other sites