• Hallo,

    since WordPress 6.1 (really?) the original File Block presents a very simple appearance. In the block dialogue customizing isn’t possible. The font size is very small, and no button appears, only small text.
    The function is preserved, downloading the files is possible. The files are zip-files with gpx tracking content. Gpx resembles xml.
    Even all old posts with the File Block are concerned.
    I’m using OceanWP free theme. Everything seemes to be on actual level. No new plugins or experiments, no code editing and so on.

    Thanks for a good advice to restore the normal appearance with Text and Buttons
    Albrecht

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Your theme doesn’t seem to support the updated style properties of this block yet. You could adjust this manually, e.g. with:

    .wp-block-file a.wp-block-file__button {
      font-size: 1.25em;
    }
    
    .wp-block-file:not(.wp-element-button) {
      font-size: 1.25em;
    }

    Then both texts of the block should be the same size as the rest of your text (15px on desktop).

    In the same way you can do other styling.

    If you want your theme to provide better guidelines for this, contact their support.

    Thread Starter alrsl

    (@alrsl)

    Hallo threadi,

    thank you for this perfect workaround! I changed 1.25em to 1.0em, and it’s looking OK.

    The people from OceanWP will have to do their work, because there is no Button, only Text.
    The original Button Block is working within OceanWP.

    Thank You
    Albrecht

    Hi,

    I just wanted to add that I’m very happy finding your solution. I’m using the Astra theme and was facing the same issue with the small font-size while using the wp-block-file functionality to add attachments to a post. So, thank you very much. I also changed 1.25em to 1.0em.

    Best regards,
    Peter.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘File blocks since WP 6.1 altered to simple appearance’ is closed to new replies.