customizing /wp-content/maintenance/template.phtml
-
I see from the following that the .maintenance file in wp-content should no longer be customized.
// ATTENTION! // // DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY, // SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED. // IF YOU REQUIRE TO APPLY CUSTOM MODIFICATIONS, PERFORM THEM IN THE FOLLOWING FILE: // /home/cadre/public_html/wp-content/maintenance/template.phtml
I’ve searched as best I can to find out how to customize /wp-content/maintenance/template.phtml but am uncertain what must be left intact of the coding (if any)
Specifically, is the following necessary for the maintenance page to function correctly? Or will the maintenance template page work if the styles are changed in the header, and a customized message with links to alternate sites, while WP is in maintenance are the only things on the page?
<!--START_TIMER_BLOCK--> <?php if (isset($timer)&& $timer['enabled'] === true): ?> <section class="timer"> <div class="timer__item"> <div class="timer__data" id="timerResultDays"></div> <div class="timer__type"><?php echo $locale['timer.days']; ?></div> </div>: <div class="timer__item"> <div class="timer__data" id="timerResultHours"></div> <div class="timer__type"><?php echo $locale['timer.hours']; ?></div> </div>: <div class="timer__item"> <div class="timer__data" id="timerResultMinutes"></div> <div class="timer__type"><?php echo $locale['timer.minutes']; ?></div> </div>: <div class="timer__item"> <div class="timer__data" id="timerResultSeconds"></div> <div class="timer__type"><?php echo $locale['timer.seconds']; ?></div> </div> </section> <script type="application/javascript"> startTimer(<?php echo $timer['days']; ?>, <?php echo $timer['hours']; ?>, <?php echo $timer['minutes']; ?>, <?php echo $startTime; ?>, <?php echo $timeShift; ?>); </script> <?php endif; ?> <!--END_TIMER_BLOCK--> <!--START_SOCIAL_LINKS_BLOCK--> <section class="social-links"> <?php foreach($socialNetworks as $network => $url): ?> <a class="social-links__link" href="<?php echo $url;?>" target="_blank" title="<?php echo ucfirst($network);?>"> <span class="icon"><img src="<?php echo $assetsUrl; ?>images/<?php echo $network;?>.svg" alt="<?php echo ucfirst($network);?>"></span> </a> <?php endforeach; ?> </section> <!--END_SOCIAL_LINKS_BLOCK-->
I hope this question makes sense and that someone who understands maintenance/template.phtml can point to page(s) that will explain the procedure to the general public.
Thank you.
-E. Morris (I know only enough about php to get myself in trouble)
- The topic ‘customizing /wp-content/maintenance/template.phtml’ is closed to new replies.