PHP output not updating


Hi everyone. I’ve got this code in my page.php file (using wordpress, but this question is not related to worpdress since I don’t think it’s its fault)

<?php get_header(); ?>
    <?php if(!is_front_page()) : ?>
        <!-- the "lazy block" -->
        <!-- this block doesn't update -->
        <div class='page-title'> 
            <div class='container'>
                <h1> <?php echo strtoupper($pagename); ?> </h1>
    <?php endif; ?>
    <div class="container">
        <div class="row">
            <div class="col-xs-12 col-md-8">
                <?php the_content(); ?>
            <div class="hidden-xs col-md-3 col-md-push-1">
                <?php get_sidebar(); ?>
<?php get_footer(); ?>


Previously the outer element of the lazy block (see comments) had “page-header” as class, but since that class name is already used by bootstrap and since its behaviour is completely different from the one that I aim to achieve, I switched to the current one (page-title).
The problem is: doesn’t matter what I write in the lazy block: nothing changes. I’m still getting a page-header… But, the rest of the code updates like a charm.


I’ve already tried to clear my browser cache (and even history whilst trying), but nothing. Tried to yell at the monitor, but nothing. Tried to load it from my phone, but still nothing. Changed sintax (from an echo to an if block), but, well, do I need to repeat?

Any help would be apprecieted.

Read more here: PHP output not updating

Leave a Reply

Your email address will not be published. Required fields are marked *