Support for Envato Buyers › Forums › Samsara › Adding Skype chat where search button is/was
- This topic has 5 replies, 2 voices, and was last updated 9 years, 8 months ago by FocuxTheme Support.
-
AuthorPosts
-
-
May 18, 2015 at 5:55 pm #8260lucasplunkettMember
Hello,
How can I add a Skype chat button in the menu bar on the right where the search button and woo commerce buttons are?
The code is looks like this:
<script type=”text/javascript” src=”http://www.skypeassets.com/i/scom/js/skype-uri.js”></script>
<div id=”SkypeButton_Call_full.frame.productions_1″>
<script type=”text/javascript”>
Skype.ui({
“name”: “chat”,
“element”: “SkypeButton_Call_full.frame.productions_1”,
“participants”: [“full.frame.productions”],
“imageSize”: 32
});
</script>
</div>Thanks!
-
May 19, 2015 at 2:17 am #8263FocuxTheme SupportKeymaster
Hi
First, change the codes to
<script type="text/javascript" src="http://www.skypeassets.com/i/scom/js/skype-uri.js"></script> <div id="SkypeButton_Call_full.frame.productions_1" style="float:right;width:20px;height:30px;margin-top:-5px;margin-left:-60px;margin-right:140px;"> <script type="text/javascript"> Skype.ui({ "name": "chat", "element": "SkypeButton_Call_full.frame.productions_1", "participants": ["full.frame.productions"], "imageSize": 32 }); </script> </div>
Second, edit header.php file, put the codes below the
<div id="logo"></div>
Thanks
-
May 19, 2015 at 7:51 am #8266lucasplunkettMember
Is this what you meant? It doesn’t seem to be working
https://www.dropbox.com/s/sd08dtcnmhushdb/Screenshot%202015-05-19%2009.51.01.png?dl=0
-
May 19, 2015 at 9:31 pm #8268FocuxTheme SupportKeymaster
The code was automatically modified when I posted for you, please try again
<script type="text/javascript" src="www.skypeassets.com/i/scom/js/skype-uri.js"></script> <div id="SkypeButton_Call_full.frame.productions_1" style="float:right;width:20px;height:30px;margin-top:-5px;margin-left:-60px;margin-right:140px;"> <script type="text/javascript"> Skype.ui({ "name": "chat", "element": "SkypeButton_Call_full.frame.productions_1", "participants": ["full.frame.productions"], "imageSize": 32 }); </script> </div>
-
May 21, 2015 at 11:31 am #8274lucasplunkettMember
Yes, that’s what I’ve done:
https://www.dropbox.com/s/5i64fadsv6ohq7j/Screenshot%202015-05-21%2013.31.31.png?dl=0
-
May 21, 2015 at 3:44 pm #8278FocuxTheme SupportKeymaster
I found error: “Uncaught ReferenceError: Skype is not defined”
Change this line
<script type="text/javascript" src="www.skypeassets.com/i/scom/js/skype-uri.js"></script>
to
<script type="text/javascript" src="http://www.skypeassets.com/i/scom/js/skype-uri.js"></script>
-
-
AuthorPosts
- You must be logged in to reply to this topic.