WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Embed Chessboard] Change display (4 posts)

  1. aruwal
    Member
    Posted 4 years ago #

    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

  2. pgn4web
    Member
    Posted 4 years ago #

    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:
    http://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

  3. aruwal
    Member
    Posted 4 years ago #

    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

  4. pgn4web
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic