Hello, I want to make a shortcode for a javascript code. The code is from canvaschess.com, I want to implement this code to my wordpress site with a short code. I believe it is a simple line of code but i do not understand php even a bit. Could you please help me? <link rel="stylesheet" href="https://s3.amazonaws.com/canvas-chess/source/pgn.min.css"> <script src="https://s3.amazonaws.com/canvas-chess/source/canvaschess-0.1.0.min.js"></script> <script src="https://s3.amazonaws.com/canvas-chess/source/pgnviewer-0.1.0.min.js"></script> <script> var viewer = new CHESS.PgnViewer({ pgn_uri: 'https://s3.amazonaws.com/canvas-chess/pgn/lasker_capablanca_1921.pgn', piece_set: 'https://s3.amazonaws.com/canvas-chess/pieces/merida' }); </script> Code (markup):
This might do the trick. Hard to say really. Seems to me its missing a step but perhaps not. I don't currently have time to test that theory. https://wordpress.org/plugins/shortcoder/ Nigel