The home page for my site is looking like this so far. The only problem is that I can’t get the buttons aligned horizontally.

The setup is a grid container containing 3 group items. Within each group is a H3 heading, paragraph, list items and a button. The buttons at the bottom should all line up.

There aren’t many options in the actual editor for things like this. I’ve set the buttons to be centre justified and I’ve set the vertical alignment to “bottom”.

I don’t mind adding custom CSS in the sidebar for the blocks, but it would need to be responsive.

  • Séimhe (sé / é)OP
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    21 days ago

    I appreciate that. Here’s a temporary link since I’m working locally for now. See what you think: <removed>

    • grandel@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      21 days ago

      Sweet, thanks!

      Using this markup I think I was able to achieve what you were asking for:

      .site-main .wp-block-group__inner-container {
          display: flex;
          flex-flow: column nowrap;
          height: 100%;
      }
      
      .site-main .wp-block-group__inner-container .wp-block-buttons {
          margin-top: auto;
      }
      

      But this is not ideal, it’s merely a quick and dirty proof of concept. I have a couple of follow up question, since It’s a been a while I worked with WordPress:

      1. Is there a way to make the columns “stretch” because they currently don’t fill their container:

        If there is, please remove the height: 100% css markup.

      2. Could you add a custom class to the columns? Otherwise the markup will apply to all columns on your site.

      3. Could you add a custom class to the button? Otherwise the markup will apply to all buttons on your site.

      • Séimhe (sé / é)OP
        link
        fedilink
        arrow-up
        2
        ·
        21 days ago

        Oh wow, this works! Thank you so much!

        I’m not sure about columns stretching. I assume you mean within the Wordpress editor? In that case I don’t think so, because it’s a grid tool of sorts the user can’t do much else with it.

        I well certainly add custom classes to contain the CSS you’ve given me. Thank you so, so much.