• I want to insert an html5 chess game page from a local directory into my WordPress theme ‘PlayChess’ page but no matter what I have tried the chessboard/game refuses to display.
    I am trying this in my localhostserver WebMatrix and online at the site https://www.buryknightschess.org.uk

    I have tried inserting the html code directly and using plugins eg PageView & HtmlImport and EmbedIFrame.

    If I link to the demo site the html5 chess game is hosted at on sourceforge in my WP page, the game displays properly. I do not want to use this though as I have modified/improved the code for my use & it works fine from my local directory in my browser & via IIS7/webmatrix localhost outside of WordPress. I just cannot get it to display in my WordPress theme page (WP theme modified 2011)!

    If anyone has any helpful ideas of anything I might try to get this local html5 file with JScript in it working properly in my WordPress theme page I would be very grateful for such advice. Meantime as ever I will continue wrangling with this myself-thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter richardpd

    (@richardpd)

    My further investigation shows that most of my template header links are returning 404 errors eg

    <script type="text/ecmascript" src="/html5/common/xhr.js"></script>
    
    <script type="text/ecmascript" src="chess.js"></script>
    <link type="text/css" rel="stylesheet" href="/html5/css/chess.css" />
    <link type="text/css" rel="stylesheet" href="/html5/skins/gnomechess.css" />

    I have tried:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    and these links return 404 codes!

    I do not know why this is happening? Can anyone help please?

    Thread Starter richardpd

    (@richardpd)

    I still have this problem and it is not confined to my localhostserver. The same referencing /404 problem is occuring online-see
    https://www.buryknightschess.org.uk/play-chess/

    I am most grateful for helpful replies

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Insert html5 page into WordPress page problem’ is closed to new replies.