• Resolved AdRock952

    (@adrock952)


    I installed this plug in last week and it was all working fine. I had a content block in header.php and a contnet block in footer.php

    I’ve come to the site to continue development and now the content block in the footer has disappeared. I’ve searched the support but nothing seems to work such as disable HTTP etc.

    What is weird is that the header block still exists but the footer block is missing in both front and backends.

    I’ve tried creating the exact same code as the header block (but replacing the name) in both the page.php and footer.php but nothing. However, if i create a new block in the header which is cut and pasted from the foot.php, it shows in admin. It appears i can only add blocks in header.php

    I don’t know if this has to do something with any updates to other plugins or WordPress getting updated to version 3.9

    This works in header.php but not in page.php or footer.php

    <div class="intro">
        <div class="row">
            <div class="span6">
    	    <?php the_block( 'doh' ); ?>
    	</div>
        </div>
    </div>

    https://wordpress.org/plugins/multiple-content-blocks/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Harold Angenent

    (@harold-angenent)

    This could literally be anything, but I suspect the website doesn’t parse beyond header.php. Are you sure all lines of code are executed? Because if you turn off HTTP requests and visit the page (ánd all lines of code are executed), it’s almost impossible that the content blocks fails to register.

    I have only seen this once where the admin side would run on HTTPS and the website didn’t. But in that cases, turning off HTTP requests worked as well.

    Did you maybe change something in the permission to the content (for example: do users need to be logged in)?

    Thread Starter AdRock952

    (@adrock952)

    Thanks for your quick reply.

    Where i have pasted the code to display the block in the footer, it creates the div but it’s empty.

    I’m testing this on localhost on a local machine.

    I haven’t changed anything apart from doing updates when WordPress displays any.

    If i show inactive blocks, i can see the block that I want but it doesn’t display

    Thread Starter AdRock952

    (@adrock952)

    I have now got it to display on the front page and the posts page (news-page.php and single.php).

    The content block is still in footer.php where it should be but won’t display on page.php or any other custom page

    This is my footer.php

    <div class="container">
    		<div id="quick-links" class="quick-links">
    			<?php the_block( 'Quick Links' ); ?>
    		</div>
    	</div>
    	<footer>
    
        </footer>
    
        <!-- Le javascript
        ================================================== -->
        <script src="../assets/js/jquery.js"></script>
        <script src="../assets/js/bootstrap.js"></script>
    
      </body>
    </html>

    and this is my news-page.php

    <?php
    /*
    Template Name: News Page
    */
    ?>
    <?php get_header(); ?>
    <div class="container">
    	<div class="row">
    		<div class="span12">
    			<?php if ( function_exists('yoast_breadcrumb') ) {
    				yoast_breadcrumb('<p id="breadcrumbs">Your\'re here: ','</p>');
    			} ?>
    			<hr />
    		</div>
    	</div>
    	<div class="row">
    		<div class="span8">
    
    			<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    				<?php the_content(); ?>
    
    			<?php endwhile; else: ?>
    				<p><?php _e('Sorry, this page does not exist.'); ?></p>
    			<?php endif; ?>
    
    		</div>
    		<div class="span4">
    			<?php get_sidebar(); ?>
    		</div>
    	</div>
    </div>
    <?php get_footer(); ?>
    <?php wp_footer(); ?>

    My page.php is EXACTLY the same as this without the comments but news-page.php shows the content block but page.php or any other page template the same as news.page.php doesn’t show the content block

    Thread Starter AdRock952

    (@adrock952)

    I just gave up with this and reinstalled wordpress version 3.8 and did no updates, installed all plugins and everything works fine now. Must have been some update that screwed it up

    Plugin Author Harold Angenent

    (@harold-angenent)

    Hmm okay, strange. I’ve just tested under WP 3.9.1 and 4.0, seems to be working.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't create content block in footer’ is closed to new replies.