• Is there a way to move the additional content above the age consent buttons? Right now, the content appears beneath everything and there’s a lengthy message I want to add that’s too long to add as a sub-headline – and it needs to legally be above the buttons.

Viewing 1 replies (of 1 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @slegrand18,

    You can, but it’s not the prettiest solution at the moment. It will be easier when the next major version is out.

    Until then though, we need to get a bit creative with some CSS and flex as it allows us to reorder elements.

    Essentially we set the window to be flex, then set everything to 100% so it wraps (can’t use flex column as it stacks the buttons).

    Then we set all the things order property and Additional Content should be above the buttons:

    .age-gate-form {
      display: flex;
      flex-flow: row wrap;
      justify-content: center;
    }
    
    .age-gate-heading,
    .age-gate-subheading,
    .age-gate-challenge,
    .age-gate-error,
    .age-gate-remember-wrapper,
    .age-gate-additional-information {
      flex: 0 0 100%;
      max-width: 100%;
    }
    
    .age-gate-heading,
    .age-gate-subheading,
    .age-gate-challenge,
    .age-gate-error {
      order: 0;
    }
    
    .age-gate-additional-information {
      order: 1;
    }
    
    .age-gate-remember-wrapper,
    .age-gate-submit-yes,
    .age-gate-submit-no {
      order: 2;
    }

    Hope that helps

    Cheers
    Phil

Viewing 1 replies (of 1 total)
  • The topic ‘Move Additional Content Above Age Consent Button’ is closed to new replies.