• Hi there,
    Is there a way to make the the age gate open with a transparent background (not the form itself, but the outer wrapper) so you partially see the page behind it?
    Thanks!!!

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @sgucci1,

    It’s not at the moment for a couple of reasons;

    If you are using “standard” mode your content never loads as age gate replaces the template with it’s own.

    In JS mode, it hides all the content it doesn’t want. In theory you may be able to work around this with CSS but it’d a little bit hacky I think.

    Essentially, in my head when writing the plugin this would seem to defeat the purpose of the plugin but you’re the third person to ask so it probably doesn’t 🙂

    However
    As you may have seen from other threads, I’ve been banging on about a v2 of the plugin. The JS mode of this behaves differently so it will be possible. I am writing the documentation for this version today and hope to have an alpha version out today too.

    In the meantime you could add an image of your site as the background, not the nicest solution I admit but I think it’s worked for some others.

    Cheers
    Phil

    Thread Starter sgucci1

    (@sgucci1)

    Thanks for the quick response. If v2 has those features I’ll use it, I’ll gladly donate, it would be well worth it. It would be great if the % of the overlay was adjustable and the if the age gate box was a little more customizable. For instance, being able to give it rounded corners or even make it a circle if we want.
    Thanks again!
    Steve

    Plugin Author Phil

    (@philsbury)

    Hi Steve,

    V2 has a CSS editor build in and a load of other changes (actions, filters, custom form fields etc etc). It’s in alpha, details of which can be found here:
    https://wordpress.org/support/topic/age-gate-v2/

    I’ve got a few things to test and retest on it before it becomes an official release but you’re welcome to try it.

    Cheers
    Phil

    Thread Starter sgucci1

    (@sgucci1)

    Thanks!! I will test it out, it sounds great. Hopefully you can add an adjustable overlay option to the background in the final release. Like I said, I’d gladly pay for that, it would be well worth it.
    Steve

    Plugin Author Phil

    (@philsbury)

    Hi Steve,

    It’ve added a new version to the downloads page:
    https://wordpressagegate.com/downloads

    This has sliders for the opacity – it’s not pretty at the moment, just standard HTML ranges but it should work for testing.

    There’s one for background colour, foreground colour and even the background image.

    As I mentioned before, it’ll only work in JS mode.

    Any feedback on it greatly appreciated

    Thanks
    Phil

    Thread Starter sgucci1

    (@sgucci1)

    Hi Phil,
    I gave it a test. It displays the age gate between the header and the main page text, it’s not displaying over the top, but inbetween. Also, all site links are clickable and navigable. I hope this input helps.
    Steve

    Plugin Author Phil

    (@philsbury)

    Hi Steve,

    Thanks for this, from what you’ve said it sounds like there may be some z-indexing/positioning issues. I’ve only got it running on the standard theme at the moment, so if you have a link that’d be good to see.

    If it is as I think, you can add this to the CSS editor on the advanced page and see if it fixes it.

    .age-gate-wrapper {
      position: absolute;
      z-index: 999999;
      width: 100%;
      top: 0;
    }

    If that works I’ll probably roll it into the main CSS as I’d expect others to potentially have similar issues.

    Thanks
    Phil

    Thread Starter sgucci1

    (@sgucci1)

    Hi Phil,

    Yes, that helped, but… You can scroll down the page and see content. I’m guessing the scroll just needs to be disabled, that seems like it would fix the issue.

    Steve

    I’m going to try the opaque background next.

    Plugin Author Phil

    (@philsbury)

    Hi Steve,

    The scroll should be disabled so we may have some conflicts between the plugin and theme CSS and the theme is winning. I’ve made a couple of tweaks to the CSS if you’d be willing to give that a go, they can be found here:
    https://wordpressagegate.com/download/157/

    If you’re still getting the scrolling there’s a couple of things we could try. You could add the following to the custom CSS

    html.age-gate-restricted,
    body.age-restriction {
      height: 100vh !important;
      overflow: hidden !important;
    }

    !important isn’t the best solution but if it works it’ll help understand a little about what’s happening. If that doesn’t work we could try tapping into the event listener when the age gate shows/hides. But let’s try that if this doesn’t work.

    Another option is to set:

    .age-gate-wrapper {
      position: fixed;
    }
    

    in the custom CSS. It’ll still scroll, but with Age Gate over the top.

    As an aside, the CSS I gave you in the last message is now part of the main code so you shouldn’t need it anymore.

    Let me know if any of that works/any further issues and I’ll work to get them resolved.

    THanks,
    Phil

    Thread Starter sgucci1

    (@sgucci1)

    Hi Phil,
    I appreciate all the effort.

    The first CSS code still let it scroll
    The second set of CSS did what you said, let the whole age gate scroll with the page.

    On my site I have a full width image on my front page, it does not display in the background with this test version. The last test version my site displayed fine in the background.

    I hope this input helps.

    Steve

    Plugin Author Phil

    (@philsbury)

    Hi Steve,

    That’s frustrating.

    What theme are you using, it might be easier if I grab a version of it and look into it that way or we could but back and forth forever on this. Or if you have a link I can see where the conflicts are.

    I’m thinking at the moment it’s probably an issue with how the theme is setting the page height (if at all) vs how age gate is doing it with vh units, but that’s a bit of a guess at this point.

    This might do it, but still a guess

    html.age-gate-restricted,
    body.age-restriction,
    .age-gate-wrapper {
      height: 100% !important;
      overflow: hidden;
    }

    Cheers
    Phil

    Thread Starter sgucci1

    (@sgucci1)

    Hi Phil,

    That fixed the part about seeing my background, but the page still scrolls, but the scroll portion is hidden now.

    My site is not live yet. I’m using Divi theme from Elegant Themes, it’s pretty popular. Is there a way to send my login info without doing it here on the forum so you can take a look if you want?

    Steve

    Plugin Author Phil

    (@philsbury)

    Hi Steve,

    Absolutely, you can send it (or create a new user) with support@wordpressagegate.com as the email and I can have a look.

    If you do a new user, make sure that type has age gate permissions in the access tab.

    Thanks
    Phil

    devcpf

    (@devcpf)

    Phil, first of all, thanks for developing a great plugin! I’ve been using the older version and excited to checkout the v2 beta 2 release today. Downloaded it now.

    I’m going to bump the request to 4 people on the overlay opacity showing the site in the background. I plan on testing it on the Theme http://flatsome3.uxthemes.com/. It’s a very popular theme for use with WooCommerce and Brewery Type Websites. I’m working on a new site, do you have a rough timeline on when v2 might be promoted to release ready? And I assume the opacity site in the background wouldn’t make the release.

    Plus, I’m happy to donate to the effort as well. I didn’t see the donate in the v2, is the version in v1 still operable?

    Plugin Author Phil

    (@philsbury)

    Hi @devcpf,

    Sorry for the slow reply. The transparent background will be in the first release of V2. I did an update yesterday in preparation for V2 so just want to give it a couple of days to let people get that one first.

    The latest beta of V2 seems pretty stable, and now has a test to inform you if new dev versions are available, so I’d say it’d probably be ok to use while developing, depending on what you time scales are.

    The donate link should still be there, on the plugins page at least. A bit more subtle than in the V1.

    Thanks
    Phil

Viewing 15 replies - 1 through 15 (of 18 total)

The topic ‘Transparent Background’ is closed to new replies.