• Resolved junkhed1

    (@junkhed1)


    Hi all I’m not sure whats happening but I created a template for one of my categories and added some styling to it. As you will see in the link provided the first post is in a light greyish color which is what I want but the next posting is in black with the exception of the link just under the title. I’m not sure why this is happening as both posts are tied into the same category so I would assume should carry the same styles… can anyone assist in what I may be doing wrong?

    I’m not sure what it could be…
    LINK
    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • There’s a slight error in the nesting of your elements, the top post is sat inside it’s own set of elements, the second doesn’t quite match up..

    Open up whichever theme file handles display for that page and post it into a pastebin, and i’ll help you correct the code. If you’re not sure which file handles displaying that page, please refer to the template hierarchy.

    Thread Starter junkhed1

    (@junkhed1)

    Hi thank you for the reply.. I’m a bit new to WP so forgive for not being up to date with all this. What exactly should I do with the pastebin file? do I just copy whats in the category template I created and paste that in? The error with the nesting is this something that I would be able to see viewing the source code here is the actual coding being used on the category page do you think you could spot what needs to be fixed? Thank you very much for your assistance.

    <?php
    /*
    Template Name: The Making of Player Hating
    */
    ?>
    <?php get_header(); ?>
    
       <style type="text/css">
    	body {background-color:#fff;}
    	#wrap {background-color:#fff;}
    	</style>
    
             <div id="blog_main12">
             	<div id="blog12">
    
             <div class="blog-cat12">
            <?php global $query_string;
    query_posts($query_string . "&order=ASC"); ?>
    
              <?php if(have_posts()) : while(have_posts()) : the_post(); ?>
    
                        <h2><?php the_title(); ?></h2>
                        <p class="meta">posted by <?php the_author(); ?> on <?php the_date(); ?></p>
                        <?php the_content('read more'); ?>
                        <br />
                        <div id="retweet">
              <?php if (function_exists('topsy_retweet_small')) echo topsy_retweet_small(); ?>
              </div><!--end retweetTW -->
                        <div id="shareFB">
           <a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>" target="blank">Share on Facebook</a>
    </div><!--end shareFB div-->
    
         <div class="BlogComments">
                 <a href="<?php comments_link(); ?>"><?php comments_number('0', '1', '%'); ?> Comment(s)</a>
                 </div><!--end blogcomments-->
    
                 </div><!--end blog post-->
    
         <?php endwhile; ?>
    
                   <?php else : ?>
                   <p>The information you are looking for is not available.</p>
                   <?php endif; ?>
                     </div><!--end blog-->
    
             </div><!--End main-->
    	<?php get_footer(); ?>
    Thread Starter junkhed1

    (@junkhed1)

    Okay I figured out what was wrong… Trial and error lol
    Thanks so much for the assistance in pointing out where the root of the problem was!

    Cheers!

    Ok, great, glad you were able to resolve the problem.

    RE: Pastebin – Just plonk in code, select the Syntax highlighting type(not required) via the dropdown, and hit Submit. The page will re-render with the code in it (aka. a pastebin), all you need do then is copy the URL from the addressbar. None of the fields are required except the big one (where your code would go).

    Example:
    http://wordpress.pastebin.com/Wti1FSPm

    Thread Starter junkhed1

    (@junkhed1)

    Thanks very much truly appreciate it!

    You’re welcome.. 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Issues with Category Styling’ is closed to new replies.