Where is this padding coming from?
-
I deleted part of the header on a client’s website, but the white space remains where that portion was. I can’t figure out where the padding is coming from in the html. I assume it’s on the Page Template, because it affects every page on the site. Inspecting the elements shows that it is mostly from the inner body portion (div.content-inner).
<?php get_header(); ?> <title><?php bloginfo('name'); ?><?php wp_title("-"); ?></title> </head> <body <?php global $post; $arr = get_object_vars($post); body_class($arr['post_name']); ?>> <div class="container"> <?php include('site-header.php'); ?> <!-- Begin Content --> <section class="content"> <!-- <div class="search-bar"> <a href="#"><div class="search-icon">Search</div></a> <input class="wide" type="text" placeholder="Search" /> </div> --> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="flexslider"> <ul class="slides"> <?php // Attachment Loop $attachments = get_children( array( 'post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'order' => 'ASC', 'orderby' => 'menu_order' ) // end array ); // end attachment //print_r($post); foreach ($attachments as $a){ $image = wp_get_attachment_url( $a->ID ); $image = str_replace('https://elretiro.dev/', '/', $image); $image = str_replace('https://elretiro.pontidev.com/', '/', $image); //print_r($a); echo '<li>'; echo '<img src="' . $image . '" style="width:100%"/>'; // if ($a->post_content !== ''){ // echo '<p class="flex-caption">' . $a->post_content . '</p>'; // } echo '</li>'; if ($a->post_excerpt == 'single'){ break; } } // end foreach ?> </ul> </div> <div class="content-inner"> <padding-top:0px> <?php the_content(); ?> <padding-top:0px> </div> <?php endwhile; endif; ?> <?php // Include our People include('section-people.php'); // Include Calendar include('section-calendar.php'); ?> </section> <!-- End Content --> </div> <!-- End Container --> <?php include('site-footer.php'); ?> <?php include('site-bottom.php'); ?> <script> //<![CDATA[ $(window).load(function() { $('.flexslider').flexslider(); }); $(document).ready(function(){ ponticlaro.jquery_document_ready('retreats'); }); //]]> </script>
Thanks!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Where is this padding coming from?’ is closed to new replies.