Derres Posted February 3, 2016 Share Posted February 3, 2016 (edited) Why if i write that skype button code in a cms page it don't work ? I need to set the skype button in the middle of a cms page. Thanks <script type="text/javascript" src="http://www.skypeassets.com/i/scom/js/skype-uri.js"></script> <div id="SkypeButton_Call_skypenick"> <script type="text/javascript"> Skype.ui({ "name": "chat", "element": "SkypeButton_Call_skypenick_1", "participants": ["skypenick"], "imageSize": 32 }); </script> </div> Edited February 4, 2016 by Derres (see edit history) Link to comment Share on other sites More sharing options...
tdr170 Posted February 3, 2016 Share Posted February 3, 2016 (edited) I think your code is wrong the second line should have your call name with the _1, try it now. here is the corrected code <script type="text/javascript" src="http://www.skypeassets.com/i/scom/js/skype-uri.js"></script> <div id="SkypeButton_Call_skypenick_1"> <script type="text/javascript"> Skype.ui({ "name": "chat", "element": "SkypeButton_Call_skypenick_1", "participants": ["skypenick"], "imageSize": 32 }); </script> </div> Edited February 4, 2016 by tdr170 (see edit history) Link to comment Share on other sites More sharing options...
Derres Posted February 4, 2016 Author Share Posted February 4, 2016 Alos writing in that way in cms idk why it autodelete the code when i save Btw thx for the answer Link to comment Share on other sites More sharing options...
tdr170 Posted February 4, 2016 Share Posted February 4, 2016 (edited) I found a way around the issue, I tried the code in a CMS page and I get content is invalid error so here is what I did. I created a CMS page just used one from my actual site and saved then went to Modules CMS block and enabled it for left column block you could also enable for footer if you wanted. I then went to the database and ps_cms_lang clicked edit on the page I named skype and pasted the code directly in the database, this worked. So create the page then where you want the button to go leave yourself a clue like Paste Skype Here and paste the code in it should work on the page now. Know that if you edit the page after this from the BO it will most likely delete the code or give the error I got. I will wait ti here back from you as the link I gave is a test site where I am working on a theme and I want to put it back in Maintenance mode. You can see it here http://team-shepherdusa.com/shop1614demo/content/6-skype ps: I added a <div align="center"> to the script for position Edited February 4, 2016 by tdr170 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now