• Resolved petervdeynde

    (@petervdeynde)


    Hello,

    I’m trying to customize a specific page on my site and was wondering if the white content box can be removed?

    I tried not putting in any text, but the box still shows up as a blank white box.

    I also tried removing the line:

    <?php md_content_box(); ?>

    But that removes the headline and the headline cover as well. I was wondering if there is a way I can remove just the white box?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, can you post a URL so we can see what it looks like?

    Without looking at it, I’m wondering if you can use CSS to hide the box. It won’t remove it physically, but it won’t display on the screen.

    Thread Starter petervdeynde

    (@petervdeynde)

    Hi Susan,

    Thanks for your reply.

    This is one of the pages I’m looking to customize

    I also tried replacing the <?php md_content_box(); ?> line with the following:

    <div class="custom-box">
    	<div class="inner">
    	
    		<div class="format-text-main block-triple">
    			
    			<?php get_template_part( 'content/headline' ); ?>
    			
    		</div>
    	
    	</div>
    </div>

    Which does remove the white content box but it also removes the subtitle and the headline image is no longer aligned with the posts beneath it. So that’s not an option.

    Thread Starter petervdeynde

    (@petervdeynde)

    Ok got it now. Left out the loop around the headline template, so it wasn’t pulling the subtitle meta data. This is the right code to use:

    <div class="custom-box">
    	<div class="inner">
    
    		<div class="format-text-main block-triple-tb pb-none">
    
    			<?php while ( have_posts() ) : the_post(); ?>
    				<?php get_template_part( 'content/headline' ); ?>
    			<?php endwhile; ?>
    
    		</div>
    
    	</div>
    </div>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove white content box on specific pages’ is closed to new replies.