• Resolved ajdance

    (@ajdance)


    I am struggling to persuade an accordion block to extend to full content width, whatever container block I try, the accordion content remains a narrow width. The accordion block has the heading More Photographs and is immediately below the Gallery. I have used exactly the same layout for the Videos section and the accordion content is content width, exactly as expected.

    The theme is a child of Twenty Twenty Five. Any suggestions or advice greatly appreciated.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • anonymized-17656083

    (@anonymized-17656083)

    Without seeing your editor it’s hard to say but you could fix with some custom css in your theme appearance editor like this:

    .wp-block-accordion.is-layout-flow.wp-block-accordion-is-layout-flow {
    width: 100%;
    text-align: center;
    }
    Moderator threadi

    (@threadi)

    The reduced width results from settings in the Group Block, which contains the Accordion Block. Change the Justification option to the following:

    https://snipboard.io/5E4jYU.jpg

    Thread Starter ajdance

    (@ajdance)

    Brilliant, that works perfectly, many thanks threadi, Andy

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

You must be logged in to reply to this topic.