• Resolved frazzledmama

    (@frazzledmama)


    Hi, I just uploaded a new theme to a site I manage, https://www.cpccpartners.com. I have been able to tweek the theme on everything except this issue of the content on my pages showing up at the bottom instead of in the content area.

    Any thoughts????

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    It should be the iFrame code either in index.php of your theme or in style.css file…remove it and have a check with the blog contents..

    Thanks,

    Shane G.

    Thread Starter frazzledmama

    (@frazzledmama)

    Well, I checked for iFrame (should have said that) but I couldn’t find it in either the index or the style.

    Any other thoughts?

    m

    there is one closing </div> too many:
    probably in page.php:
    if you can find this:

    </div><div id="container">
    
    		<div class="post" id="post-5">

    could be the first </div> that is too much.

    just check that all opened tags are closed properly.

    Thread Starter frazzledmama

    (@frazzledmama)

    I don’t have much experience with code…here is my page.php

    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    <div id="container">
    
    <?php if( have_posts()): while (have_posts()) : the_post(); ?>
    
    		<div class="post" id="post-<?php the_ID();?>">
    			<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    
    			<div class="entry">
    				<?php the_content();?>
    				<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
    				<?php edit_post_link('Edit', '<p>', '</p>'); ?>
    
    			</div>
    		</div>
    
    	<?php endwhile; ?>
    
    	<?php else: ?>
    	<div class="post">
    		<?php _e('Not Found'); ?>
    	</div>
    
    <?php endif; ?>
    
    </div>
    
    <?php get_footer(); ?>

    page.php is ok.

    the extra div must come from the sidebar.php (or some widgets or plugins from the sidebar).

    if you like to post the sidebar.php code as well, we can have a look at it.

    thank you.

    Thread Starter frazzledmama

    (@frazzledmama)

    Thanks! I really appreciate the help. Here is the sidebar.php

    <div class="sidebar">
    
    	<div class="sidebar1">
    
    	</div>
    
    	<div class="sidegroup">
    			<div id="sidebar2" class="singlebar">
    					<ul>
    
    						<?php  if(function_exists('dynamic_sidebar') && dynamic_sidebar()):else: ?>
    						<li>
    							<h2><?php _e('Categories'); ?></h2>
    							<ul>
    								<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
    							</ul>
    						</li>
    
    						<?php wp_list_pages('depth=2&title_li=<h2>Pages</h2>'); ?>
    
    						<li>
    							<h2><?php _e('Archives'); ?></h2>
    							<ul>
    								<?php wp_get_archives('type=monthly'); ?>
    							</ul>
    						</li>
    
    						<?php endif; ?>
    					</ul>
    			</div>
    
    			<div id="sidebar3" class="singlebar">
    				<ul>
    
    				<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('2') ) : ?>
    
    						<?php get_links_list(); ?>
    
    						<li>
    
    							</ul>
    						</li>
    						<?php endif; ?>
    					</ul>
    
    			</div>
    
    	</div>
    
    				</script>
    
    				<script type="text/javascript" src="https://pagead2.googlesyndication.com/pagead/show_ads.js">
    				</script>
    			</div>
    
    </div>

    yes, please delete the last
    </div>
    in sidebar.php – that really should solve your problem.

    Thread Starter frazzledmama

    (@frazzledmama)

    Sweet! Thank you so much, that fixed it!!!!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Content on pages stuck at bottom of page’ is closed to new replies.