- This topic has 7 replies, 2 voices, and was last updated 6 years, 7 months ago by Mahesh.
-
AuthorPosts
-
July 29, 2017 at 10:22 am #119792Claus GamborgParticipant
I’m trying to show chess games on my website because it can deal with multiple games.
Instructions to show chess games:
https://docu.chessbase.com/reader/cbreplay.html
Webmaster Tools in Head
<link rel=”stylesheet” type=”text/css” href=”https://pgn.chessbase.com/CBReplay.css”>
<script src=”https://pgn.chessbase.com/jquery-3.0.0.min.js”></script>
<script src=”https://pgn.chessbase.com/cbreplay.js” type=”text/javascript”></script>In Page (Code):
<div class=”cbreplay”>
[Event “World Championship 28th”]
[White “Spassky, Boris V”]
[Black “Fischer, Robert James”]
[Site “Reykjavik”]
[Result “1–0”]
[Date “1972.08.06”]
[WhiteElo “2660”]
[BlackElo “2785”]1. e4 c5 2. Nf3 d6 3. d4 cxd4 4. Nxd4 Nf6 5. Nc3 a6 6. Bg5 e6 7. f4 Qb6 8. Qd2 Qxb2 9. Nb3 Qa3 10. Bxf6 gxf6 11. Be2 h5 12. 0-0 Nc6 13. Kh1 Bd7 14. Nb1 Qb4 15. Qe3 d5 16. exd5 Ne7 17. c4 Nf5 18. Qd3 h4 19. Bg4 Nd6 20. N1d2 f5 21. a3 Qb6 22. c5 Qb5 23. Qc3 fxg4 24. a4 h3 25. axb5 hxg2+ 26. Kxg2 Rh3 27. Qf6 Nf5 28. c6 Bc8 29. dxe6 fxe6 30. Rfe1 Be7 31. Rxe6
</div>
It works in W3schools.com in editor:
https://www.w3schools.com/code/tryit.asp?filename=FI24SEZKS9WT
Click run and you’ll see the chess game.
But I can’t make it work. I only get an empty chess table even the code is placed as instructed. Works in W3school but not in Theme.
Another thing to notice is that the primary menu also appears below the footer.
Best Regards
Claus GamborgJuly 30, 2017 at 5:45 am #119816MaheshKeymaster@masterchess: Please post in your site url.
Regards,
MaheshJuly 30, 2017 at 7:07 am #119821Claus GamborgParticipantWell. That wouldn’t help much as the site is under maintenance to 1. September.
Best Regards
Claus GamborgJuly 30, 2017 at 7:08 am #119822Claus GamborgParticipantWebsite changing from https://www.masterchessopen.com to https://www.cleanchess.com
So not available before 1. September.
July 30, 2017 at 7:56 am #119823Claus GamborgParticipantI will try disable the Plugins one by one to see if that’s the reason.
July 31, 2017 at 2:59 am #119845MaheshKeymaster@masterchess: Yes, sure. Let me know if any problem.
Regards,
MaheshAugust 7, 2017 at 8:26 pm #120168Claus GamborgParticipantHi Mahesh
Just to let you know it wasn’t a Theme issue. I needed a Plugin: https://wordpress.org/plugins/simple-embed-code/
to make it work the same way as W3school, so conclusion is just that Javascript and JQuery cannot run in WordPress without the Plugin 🙂Best Regards
Claus GamborgAugust 8, 2017 at 3:03 am #120179MaheshKeymaster@masterchess: Yes, either you need to use plugin for that or enqueue the script into the theme.
Regards,
Mahesh -
AuthorPosts
- The topic ‘Show Games on Website’ is closed to new replies.