Under construction extension - custom under construction page not working

Hello there!

I currently have an issue with the under construction extension.

I set up a custom under construction page to be displayed when maintenance mode is on. I made sure none of the headers and footers are assigned to that page and when previewing out of the pro builder, it looks fine. However - when under construction mode is activated, I still get the header and footer showing, but not the content itself. Tried this being logged out, in another browser, cleared the caches several times - no luck.

Please give it a look and help me out here. I don’t know, what else to do.

Hi There,

Thanks for writing in! Could you please provide us with the URL to your site, so that we can check your issue.

Thanks!

Sure! It’s http://playground.umbertofederico.de

how do I send you a private message with the login credentials?

Hello There,

Thanks for providing the information. I have logged in and investigated the issue. I can confirm the issue and there is indeed a problem between the Pro Header and the Under Construction plugin. I’ve submitted this to our issue tracker so the developers will be made aware of it and fix this issue as soon as possible.

Thank you for your understanding.

Ok - so at the moment I’ll have to live with it I guess? Well keep me updated in case you come up with a solution. Thanks for your help!

Also the bypass password for the under construction plugin is now broken with the latest update.

@moebis … We have submitted that issue to our developers as well.

@umbertofederico … Will update as soon as possible.

Hi, there,

We confirmed a bug on X/Pro Theme that is related to dashicons styles not being loaded. We’re still investigating the issue, but you can temporarily fix it by adding to your theme functions.php:

<?php
//... at any line after PHP starting tag
wp_enqueue_style( 'dashicons' );

Keep you posted about the extension update.

Thanks!

Hey rafaelgou!

I tried this but it doesn’t change anything other then getting rid of the footer. The header is still showing and the content of the custom page isn’t.

Hi there,

Would you mind providing the file where you added it? Based on your description, it’s because of internal server error and I’d like to see how it’s added.

Thanks!

I put it in the child theme’s function.php. The file content is:

    <?php

// =============================================================================
// FUNCTIONS.PHP
// -----------------------------------------------------------------------------
// Overwrite or add your own custom functions to Pro in this file.
// =============================================================================

// =============================================================================
// TABLE OF CONTENTS
// -----------------------------------------------------------------------------
//   01. Enqueue Parent Stylesheet
//   02. Additional Functions
// =============================================================================

// Enqueue Parent Stylesheet
// =============================================================================

add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );



// Additional Functions
// =============================================================================



//... at any line after PHP starting tag
wp_enqueue_style( 'dashicons' );

Also - try to click a link on the homepage. It redirects you to the maintenance page but the header ist still showing.

Hi there,

Please try something like this

add_action( 'wp_enqueue_scripts', 'load_dashicons_front_end' );
function load_dashicons_front_end() {
  wp_enqueue_style( 'dashicons' );
}

But that code alone should work, and I can confirm that there is an internal server error. If this continues then please remove the code. It’s not related to the initial issue between Pro and Under Constructions, that code is just to fix dashboard icons not being loaded. We still have to wait for bug fixes for the initial issue.

Thanks!

Is the internal server error my fault or does it have to do with the issue of under constructions?

Another thing - why are you trying to fix dashboard icons? I don’t have any problems with dashboard icons - at least not that I’m aware of…and since it seems to be unrelated to the initial issue I am going to delete the code in the functions.php again since it makes no difference as far as I see.

Hi,

Sorry for the confusion.

The issue with under construction have been fixed in the latest release.

Please make sure you have the latest version installed.

https://theme.co/changelog/

Thanks

I have version 1.2.4 installed but nothing changed. Still got the header showing and not the content of the custom maintenance page.

Hi there,

The content now displaying and working in 1.2.4, but pushed down and clipped by your header in your setup. Which is yes, the builder’s header/footer are still displaying in a custom under construction page (but should work with non-custom page).

I’ll re-open this issue in our issue tracker, as a temporary fix, please add this CSS to your page’s custom CSS (a CSS section when you edit your custom page in the builder).

.x-masthead, .x-colophon {
display: none !important;
}

Thanks!

Ok thank you. I will try that!

Great. Thank you.

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