WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Getting rid of a space. (4 posts)

  1. edvip
    Member
    Posted 10 months ago #

    I am trying to get rid of space between the various postings in my category page at
    http://www.edvip.ca/jobopportunities/job-opportunities/

    Sorry - I'm a newbie - I had someone else set up the webpage and I'm now learning as I edit. This space is driving me bonkers and yet I can't figure it out! I'm hoping it is a simple fix that one of you can help me with.

    I am using the following script for this page:

    <?php

    /**

    * The template for displaying Archive pages.

    *

    * Used to display archive-type pages if nothing more specific matches a query.

    * For example, puts together date-based pages if no date.php file exists.

    *

    * Learn more: http://codex.wordpress.org/Template_Hierarchy

    *

    * @package WordPress

    * @subpackage SSX_Theme

    * @since SSX Theme 1.0

    */

    get_header(); ?>

    <section id="body_container">
    <div class="wrapper">
    <?php if (function_exists('z_taxonomy_image_url')) ?>
    <?php if (z_taxonomy_image_url()) { ?>
    <section class="banner_container">
    <?php if (function_exists('z_taxonomy_image_url')) ?>

    <img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo z_taxonomy_image_url(); ?>&w=0&h=0" alt="" />
    </section>
    <?php }?>
    <section class="content_details">
    <h2><?php printf( __( '%s' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></span></h2>
    <?php
    $i=1;
    if(have_posts()):while(have_posts()): the_post(); ?>
    <section class="box <?php if($i%2 == 0){echo 'last';}?>">
    <h3>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></h3>
    <?php if ( has_post_thumbnail() ) {
    $varimage = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large');
    ?>
    <img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $varimage[0]; ?>&w=0&h=0" alt="" />
    <?php } ?>

    <div class="post-excerpt">
    <?php the_excerpt(); /* the excerpt is loaded to help avoid duplicate content issues */ ?>
    </div>
    </section>
    <?php $i++; endwhile; endif; ?>

    </section>
    <?php if(function_exists('wp_paginate')) {
    wp_paginate();
    } ?>

    </div>
    </section>

    <?php get_footer(); ?>

  2. lettergrade
    Member
    Posted 10 months ago #

    There's a css style applied to each item:

    .box {
        float: left;
        min-height: 410px;
        width: 470px;
    }

    So I believe it's the min-height attribute that's causing your problem. If you adjust it, be sure to create a child theme or use a custom css plugin so your changes aren't overwritten by future theme updates.

  3. edvip
    Member
    Posted 10 months ago #

    Thanks! Really appreciate it.

    Fixed.

  4. lettergrade
    Member
    Posted 10 months ago #

    You're welcome!

Reply

You must log in to post.

About this Topic

Tags