WordPress.org

Ready to get started?Download WordPress

Forums

styling in category listing (10 posts)

  1. Dusty
    Member
    Posted 2 years ago #

    Any ideas how I can get this styling to work on the "posted in" part. I just want to take out the underline but it's treating it as a link. I tried putting the span class before the list item but it makes no difference--I've inpected the element and it still treats it as a href.

    <li class="category"><span class="no-underline">Posted in</span><?php the_category( ' , '); ?>

    Thanks

  2. Big Bagel
    Member
    Posted 2 years ago #

    The CSS your probably looking for is:

    text-decoration: none;

    I can't suggest the full block of CSS to add without an example link. Maybe:

    .no-underline {
        text-decoration: none;
    }
  3. Dusty
    Member
    Posted 2 years ago #

    Thanks for your response.
    I tried that...it wasn't working.

    Here's the link:
    http://www.maxlovesmuse.com/blog/

  4. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    you have an unclosed html link tag in your code:

    <div class="post-thumbnail">
    		<a href=""><img src="http://www.maxlovesmuse.com/wp-content/uploads/2011/09/thumbnail_1.jpg"/>
    	</div><!--end post-thumbnail-->

    (the link tag needs to be closed after the img tag)

  5. Dusty
    Member
    Posted 2 years ago #

    It's closed...here's the source:

    <div class="post-thumbnail">
    <a href=""><img src="<?php echo get_post_meta($post->ID, "thumbnail", true);?>"/>
    </div><!--end post-thumbnail--></a>

    [Please post code snippets between backticks or use the code button.]

  6. Dusty
    Member
    Posted 2 years ago #

    I made a separation for the "posted by" part. It works. If there's a better way, I'd love to hear. Thanks

    [please use the code button to mark any posted code - see guidelines http://codex.wordpress.org/Forum_Welcome#Posting_Code ]

    <li class="date"><?php the_time('jS F Y'); ?> 
    
    <li><span class="no-underline">Posted in</span></li>
    <li class="category"><?php the_category(', '); ?>
    <li class="comment-count"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
    <li class="read-more"><a>#more-<?php the_ID(); ?>">Continue reading</a>
  7. Dusty
    Member
    Posted 2 years ago #

    sorry...pastebin:

    http://pastebin.com/K4v7kmEG

  8. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    your pastebin does not contain the section with the problem;

    look for the section containing your post thumbnail code ( <div class="post-thumbnail"> and just after that)
    - possibly nearer to the start of the loop.

  9. Dusty
    Member
    Posted 2 years ago #

    Doesn't seem to be open though:
    http://pastebin.com/f80Z1Py0

  10. Dusty
    Member
    Posted 2 years ago #

    You're absolutely right. Thanks for spotting that.

Topic Closed

This topic has been closed to new replies.

About this Topic