Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Nuno Sarmento

    (@nunosarmento)

    I forgot to mention, I am using a custom template with some custom code for pulling a WP page, the below code is under the footer div.

    <div class="terms">
    	<?php
    
    	$page = get_posts( array( 'name' => 'terms-and-conditions' , 'post_type' => 'page') );
    
    	if ( $page )
    	{
    	    // echo $page[0]->post_content;
    			$getPost = $page[0]->post_content;
    			$postwithbreaks = wpautop( $getPost, true/false );
    			echo $postwithbreaks;
    	}
    
    	?>
    </div>
    • This reply was modified 7 years, 9 months ago by Nuno Sarmento.
    Plugin Contributor Ewout

    (@pomegranate)

    Hi! It’s a bit difficult to know the exact cause since you’re using a custom template.
    The footer is normally positioned in the page margins, with a negative bottom value. If you made changes to the footer styles, this could have affected that too. You can adjust the page margins, the height of the footer element or the positioning of the footer element. It’s also possible that you have a lot of line breaks after the footer text which would stretch the footer too.

    Let me know what you find!

    Ewout

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Margin on the footer’ is closed to new replies.