yo35 / rpb-chessboard

A WordPress plugin to display chess games and diagrams (using the standard FEN and PGN notations).
https://wordpress.org/plugins/rpb-chessboard/
GNU General Public License v3.0
35 stars 16 forks source link

Text after diagram #254

Open adclaran opened 1 year ago

adclaran commented 1 year ago

There is a 'default' paragraph with a class 'rpbchessboard-spacerAfter' that creates a unwanted space. How can I disable that or insert a text immediately after a diagram? For the moment, I use display:none CSS

yo35 commented 1 year ago

Hi, There is no way to remove this paragraph. Its goal is precisely to ensure that there is the same vertical space after the diagram as there would after a "normal" paragraph. Similarly, there is another empty paragraph before the diagram (with class rpbchessboard-spacerBefore).

adclaran commented 1 year ago

Thank you for the answer.

A text immediately after the diagram could be used for text lines like "Diagram 1", or "Find a move for White" etc. So, like a short description/label of the diagram. When there are more diagrams on the page, that could be really helpful. I need that, so I use CSS to "display:none" your spacing paragraph.

Thank you for your plugin!