cm123077 Posted August 26, 2012 Share Posted August 26, 2012 I am working on this site: http://174.120.16.66/~thomasse/ As you may have noticed, there are 3 blurb div areas at the bottom of the page. These are created in the file home.php. Unfortunately, this is producing an extra div tag, pushing the MiniTweets box to the right, covering the next box. How do I change the formula in the code so it does not produce the first, extra div tag? Thanks. This is the code producing this content... <div id="blurbs"><div id="twitter"><?php echo do_shortcode('[minitwitter username="Thomas_Services" limit=2]'); ?></div> <?php for ($i = 2; $i <= 3; $i++) { ?> <?php query_posts('page_id=' . get_pageId(html_entity_decode(get_option('simplepress_service_'.$i)))); while (have_posts()) : the_post(); ?> <?php $icon = ''; $icon = get_post_meta($post->ID, 'Icon', true); $tagline = ''; $tagline = get_post_meta($post->ID, 'Tagline', true); ?> <div <?php if ($icon <> '') { ?>style="background-image: url(<?php echo esc_url($icon); ?>);"<?php }; ?>> <span class="titles"><?php the_title(); ?></span> <?php global $more; $more = 0; the_excerpt(); ?> <br class="clear" /> <span class="readmore"><a href="<?php the_permalink(); ?>"><?php esc_html_e('read more','SimplePress'); ?></a></span> </div> <?php endwhile; wp_reset_query(); ?> <?php }; ?> <br class="clear" /> </div> Here is the code for the page in its entirety <?php get_header(); ?> <?php if (get_option('simplepress_featured') == 'on') get_template_part('includes/featured'); ?> <?php if (get_option('simplepress_quote') == 'on' && get_option('simplepress_blog_style') == 'false') { ?> <div id="quote"> <div> <?php echo (get_option('simplepress_quote_one')); ?> <br class="clear" /> <span><?php echo (get_option('simplepress_quote_two')); ?></span> </div> </div> <?php }; ?> <?php if (get_option('simplepress_blog_style') == 'on') { ?> <div id="content" style="margin-top: 40px;"> <div class="content_wrap"> <div class="content_wrap"> <div id="posts"> <?php get_template_part('includes/entry'); ?> </div><!-- #posts --> <?php $gallery_cat = get_option('simplepress_gallery'); if(is_category($gallery_cat)) { } else { get_sidebar(); }; ?> </div><!-- .content_wrap --> </div><!-- .content_wrap --> </div><!-- #content --> <?php }; ?> </div><!-- .wrapper --> <?php if (get_option('simplepress_blog_style') == 'false') { ?> <div id="strip-top"></div> <div id="strip"> <div> <?php echo (get_option('simplepress_strip')); ?> <img class="arrow" src="<?php bloginfo('template_directory'); ?>/images/strip-arrow.png" alt="" /> </div> </div> <div class="wrapper"> <div id="blurbs"><div id="twitter"><?php echo do_shortcode('[minitwitter username="Thomas_Services" limit=2]'); ?></div> <?php for ($i = 2; $i <= 3; $i++) { ?> <?php query_posts('page_id=' . get_pageId(html_entity_decode(get_option('simplepress_service_'.$i)))); while (have_posts()) : the_post(); ?> <?php $icon = ''; $icon = get_post_meta($post->ID, 'Icon', true); $tagline = ''; $tagline = get_post_meta($post->ID, 'Tagline', true); ?> <div <?php if ($icon <> '') { ?>style="background-image: url(<?php echo esc_url($icon); ?>);"<?php }; ?>> <span class="titles"><?php the_title(); ?></span> <?php global $more; $more = 0; the_excerpt(); ?> <br class="clear" /> <span class="readmore"><a href="<?php the_permalink(); ?>"><?php esc_html_e('read more','SimplePress'); ?></a></span> </div> <?php endwhile; wp_reset_query(); ?> <?php }; ?> <br class="clear" /> </div> <span class="blurbs_shadow"></span> </div> <?php }; ?> <?php get_footer(); ?> Quote Link to comment Share on other sites More sharing options...
jazzman1 Posted August 26, 2012 Share Posted August 26, 2012 Do you use this div in other pages on the project? I think, it's a CSS issue. Don't touch anything on the php script if you don't understand. Quote Link to comment Share on other sites More sharing options...
cm123077 Posted August 26, 2012 Author Share Posted August 26, 2012 Do you use this div in other pages on the project? I think, it's a CSS issue. Don't touch anything on the php script if you don't understand. It is not used anywhere else Quote Link to comment Share on other sites More sharing options...
jazzman1 Posted August 26, 2012 Share Posted August 26, 2012 Ah, it's a wordpress template system. If you don't understand what the functions (code) does, don't touch it at all! You could use javascript to remove this div only from this page, but it's too ugly Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 26, 2012 Share Posted August 26, 2012 Can you explain how you expect it to look? Quote Link to comment Share on other sites More sharing options...
cm123077 Posted August 26, 2012 Author Share Posted August 26, 2012 Thanks everyone. I figured it out. Now some CSS & a background image & it will be done Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.