• Hello!

    Thanks for this plugin, which I’ve just started using after a test with others to find one that suited me.

    I’ve a problem though, in that changing the block alignment to center, right, alignwide or alignfull makes no difference to the presentation. At first I thought it was my theme, so I tried it on a test site using twenty-twenty-one. The block always stays aligned to the left-hand column.

    I know that alignwide (and alignfull) is just a style that gets inserted into the code, so I added it manually under the Advanced tab for the block properties – and the block correctly aligned wide. To me then it looks as if the style code isn’t being added when the block alignment is changed.

    Is this an issue you (or anyone else) can replicate, and if so what’s the fix (apart from manually adding the style every time)?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andy Fragen

    (@afragen)

    Unfortunately I can seems to save the block alignment data or I simply don’t know how to retrieve it and use it correctly. I’ve spent a few hours today and I always end up with conflicts upon saving.

    I would welcome a PR that fixes this. Until that time, while it looks like block alignment is set it’s not saved. Sorry.

    Plugin Author Andy Fragen

    (@afragen)

    I might actually have a working solution. I’m testing. It may mean that editing a current block requires the user to “resolve” the block, but it should be fine after that.

    These fixes are in the develop branch. If you could test to see if this works that would be great. We can work out any issues you might discover in the GitHub Issues.

    https://github.com/afragen/embed-pdf-viewer/archive/develop.zip

    Thread Starter yorkslad12

    (@yorkslad12)

    Thanks Andy. When I get a moment (and work out what I’m doing!) I’ll give it a go and report back.

    Plugin Author Andy Fragen

    (@afragen)

    You might need to remove the current block and create a new one for the changes to show. Also, beware of browser caching.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Block alignment issue’ is closed to new replies.