• Resolved aruwal

    (@aruwal)


    Hi,
    I added this question in an aged thread it seems…sorry about that so I try again here:)

    This is a very nice chess plugin! Thank you! I am planning to use this in a future upgrade of my chess clubs homepages. What I would like, is a possibility to change the layout in a way that puts the chessboard to the left and the moves to the right, not as at present where the board displays above the moves. Is there any way that we can achieve this?
    We use version 1.11 on 2.9.2
    Best wishes

Viewing 3 replies - 1 through 3 (of 3 total)
  • It could be done.

    Reason why the plugin default is with the moves underneath the chessboard is that most wordpress templates leave a rather narrow column for the article, making it difficult to fit chessboard and games horizontally.

    Said that, if you really want to do that, follow these instructions:

    1. locate the file:
    wp-content/plugins/embed-chessboard/embedchessboard.php

    2. locate the line with this code:
    $replacement .= "&fp=13&hl=f";

    3. change the above to:
    $replacement .= "&fp=13&hl=t";
    it’s just changing an ‘f’ to a ‘t’

    Done. This should get you an horizontal layout.

    For better understanding of all the parameters look at:
    https://pgn4web.casaschi.net/board-generator.html

    Issue with a manual fix is that you’d need to manually repeat the fix every time you upgrade the plugin.
    Also, you’d need to manually set the height tag option; otherwise the plugin will estimate height assuming a vertical layout.

    Please post here or email me the URL of your site!

    pgn4web

    Thread Starter aruwal

    (@aruwal)

    Hi and thanks a lot for quick reply and providing me with this option! I already implemented it on my page and it works great! I do have a problem locating where to change the heightparameter.Im afraid that I dont read code at all and I am very new to all this so I would really appreciate further advice. I have sent you a mail with a link to the adress.
    With the right height it will fit my page perfectly. Smooth, elegant and classic. Thanks again!

    Harald

    As of version 12, the plugin has a configuration option (admin panel, settings menu, embed chessboard item) to configure vertical/horizontal layout, as well as tag option such as [pgn layout=horizontal] … [/pgn]

    pgn4web

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Embed Chessboard] Change display’ is closed to new replies.