Large Custom Under Construction Page Issue

Hi Support Team,

i recently set up a custom under construction page as a landing page, that should provide more than just a logo and a litte text info. It’s a very long page with one page navigation inside and even a slider as header etc.
But i run in a huge problem after setting this page as the under construction page. The page dont let me scroll and looks like a mess!

The reason i found was in the plugin “tco-under-construction/functions/enqueue/styles.php” “Disable browser scroll” section.

/*
 // Disable browser scroll.
 */

html, body {
   overflow: hidden !important;
   height: 100% !important;
   background: none;
  }

I comment out this part and also this one to set my own backgrounds:

  /*
  // Base styles.
  */

  body {
    background-color: <?php echo $tco_under_construction_background_color; ?> !important;
    <?php if ( $tco_under_construction_background_image != '' ) : ?>
      background-image: url(<?php echo $tco_under_construction_background_image; ?>);
      background-position: 50% 50%;
      background-repeat: no-repeat;
      -webkit-background-size: cover;
              background-size: cover;
    <?php endif; ?>
  }

Now the page looks and works as it should be.

I don’t know the reason why this “Disable Browser scroll” stuff is in there, but if i want to make a longer custom page it mess it up! I hope you can explain me that, otherwise it would be nice to have the option to make scrollable custom under construction page.

Regnalf

Hi @Regnalf,

Thank you for reaching out us. The under construction extension do not offer a scroll function, it is designed to be a short landing page.

If you would like to have a longer page, I’d recommend you turning of this plugin and creating a page without header or footer to be assigned as your home page, to be sure your other pages won´t be found you can save them as drafts while you develop it.

Alternatively you can follow this thread to enable scrolling on the under construction page https://theme.co/apex/forum/t/under-construction-page-not-scrolling/64300/2 or https://theme.co/apex/forum/t/under-construction-page-scroll-problem/43996/2

Cheers!

Thats exactly what i’ve done, see my first post! And i deactivated the header and footer.

But i don’t agree with turning of the plugin. You can simply broke in if you have an 404 error with an non existing page (if your error page have the normal navigation header) or guessing some pages (for example imprint or contact).

As far as i can see, there should be no problem providing a scrollable under construction page.

Hey @Regnalf,

Thanks for the feedback. It’s good to know that you have figured out to get around the much needed scrolling for your landing page.

Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.