Thread Starter
gwenm
(@gwenm)
The display problem occurs when there are several PDFs. Only the first one is displayed correctly.
VIDEO
Try editing functions.php and remove line 61:
add_theme_support( 'align-wide' );
If that doesn’t work, do you have any direct link to the page with the issue so I can inspect the code?
Thread Starter
gwenm
(@gwenm)
Since this is using Kadence Blocks, which I have no experience with, I’d suggest asking them for support instead. The tabs viewer isn’t part of the theme’s features.
Thread Starter
gwenm
(@gwenm)
First, I didn’t use Kadence. Look again without Kadence.
Hmm… the first PDF which works correctly, has a div with the class:
wp-block-file__embed
The other ones are wrapped in this:
fluid-width-video-wrapper
Which seem to break the 2-4 PDFs height. Are you sure you used the same method to embed the PDFs? They seem to be read as videos somehow.
To hack-half-fix this, you could add this in Customize > Additional CSS:
body.page .fluid-width-video-wrapper { height: 460px; }
Can’t guarantee it will work correctly on mobile etc though.
Thread Starter
gwenm
(@gwenm)
It doesn’t work perfectly and the text at the bottom is missing … It doesn’t matter, I’ll display the PDFs differently.
Thanks anyway^^.