Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #987439

    Hi Enfold Team,

    i’d like to use maintenance mode page as a landingpage until the whole page can go online.
    But for my landingpage i need further pages accessable, like legal texts and confirmation pages for newsletter registration…

    Is it possible to do this?

    Best Regards,
    Birger

    #988055

    Hey momoko-enfold,

    You can modify the page through ALB and add any elements you need.

    Best regards,
    Basilis

    #988123

    Hi Basilis,

    thanks for your reply.
    It is clear to me, how to edit and set the maintenance-page and its already done (https://www.momoko-frauenkarate.de/geschenk).

    On this page I use Newsletter-Subscription forms, and if a user subscribes he will be redirected to confirmation page https://www.momoko-frauenkarate.de/newsletter-anmeldung-bestaetigen (when not in maintenance mode)

    So my question was, if the page is in maintenance mode, can I set other pages also accessable and not only the one page you can set in the enfold-options.

    Best Regards,
    Birger

    #988269

    Hi,
    Sorry you will not be able to allow other pages while in maintenance mode.
    But you can display content in modal windows, or lightbox popups.
    This will allow you to hide the content until someone clicks to see your legal texts and confirmations which will be stored in a code block element.
    First add this code to the end of your functions.php file in Appearance > Editor:

    function popup_inline() { ?>
    <script type="text/javascript">
    jQuery(window).load(function(){
    	jQuery('.open-popup-link').magnificPopup({
    	  type:'inline',
    	  midClick: true
    	});
    });
    </script>
    <?php }
    
    add_action('wp_head', 'popup_inline');

    Then add this code in the General Styling > Quick CSS field:

    .white-popup {
      position: relative;
      background: #FFF;
      padding: 20px;
      width: auto;
      max-width: 500px;
      margin: 20px auto;
    }

    you can adjust the max-width to suit your needs, but try this code to start with.

    Then in a code block on your maintenance page add this code:

    <a href="#test-popup" class="open-popup-link">Click this button to open form in lightbox</a>
    
    <div id="test-popup" class="white-popup mfp-hide">
    YOUR SHORTCODE GOES HERE
    </div>

    Notice that the first line is the link trigger to open the popup, and the popup is below. Just replace the text “YOUR SHORTCODE GOES HERE” with your text or advanced layout builder shortcode.

    To have more than one on a page, simply change the ID for each popup (id=”test-popup”) and trigger so it is unique.

    To get the advanced layout builder shortcodes Enable the Avia Layout Builder Debug and copy the shortcodes from the debug window.

    After you do this once or twice, you will see this is easy to do.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.