Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter gwenm

    (@gwenm)

    The display problem occurs when there are several PDFs. Only the first one is displayed correctly.

    Theme Author Alexander Agnarson

    (@alxmedia)

    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)

    Hello, I deleted the line as requested but it doesn’t change anything. Here is the link https://www.lirelivres.com/lire-la-legende-du-roi-arthur-en-ligne/

    Theme Author Alexander Agnarson

    (@alxmedia)

    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.

    Theme Author Alexander Agnarson

    (@alxmedia)

    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^^.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Problem displaying PDF content’ is closed to new replies.