DotDragnet
February 08, 2012, 08:21:45 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Mobile users - Our forum is Tapatalk enabled. http://www.tapatalk.com/
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Changing font and colour of "comments" text  (Read 674 times)
danrocha
Newbie
*
Posts: 16



View Profile Awards
« on: August 05, 2010, 12:08:54 PM »

Hello everyone,

I would like to change the font and text colour of the comments text at the bottom of each post. Not the comments themselves, just where it says "comments (10)" for example at the bottom of each post.

I have changed every element within style.css within the "Post content font styles" section, but nothing affects the comments.

Thanks in advance,

Dan
Logged
Mr Anderson
DDN Contribs
Hero Member
*****
Posts: 2213



ap4a.uk ap4a
View Profile WWW Awards
« Reply #1 on: August 05, 2010, 12:22:32 PM »

More information is needed, either post a link that shows what you have or a related snippet of your markup.
Logged

danrocha
Newbie
*
Posts: 16



View Profile Awards
« Reply #2 on: August 05, 2010, 12:33:37 PM »

No worries...

This is my current code:

.storytitle {
   font: Bradley Hand ITC, "Palatino Linotype", Palatino, "Book Antiqua",  helvetica, sans-serif;;
   letter-spacing: -1px;
   color:#c11a09;
}

.storytitle a {
   text-decoration:none;
   font: bold 40px Bradley Hand ITC, "Palatino Linotype", Palatino, "Book Antiqua",  helvetica, sans-serif;;
   color:#c11a09;
}

.storytitle a:hover {
   text-decoration:none;
   font: bold italic 40px Bradley Hand ITC, "Palatino Linotype", Palatino, "Book Antiqua",  helvetica, sans-serif;;
   color:#c11a09;
}

.storycontent p {
   padding: 5px 0px 0px 0px;
   font: 18px  "Papyrus", Palatino, Georgia, "Book Antiqua",  helvetica, sans-serif;;
   color:#030000;
   width: 900px;
   height: auto;
}

.storycontent p blockquote {
   display: block;
   min-height: 45px;
   padding: 21px 10px 10px 50px;
   background:url(images/paperclip.jpg) 10px top no-repeat;
   font-family: "Palatino Linotype",Palatino,Georgia,"Book Antiqua",helvetica,sans-serif;
   color: #666;
}

.storycontent blockquote {
   display: block;
   min-height: 45px;
   padding: 21px 10px 10px 50px;
   background:url(images/paperclip.jpg) 10px top no-repeat;
   font-family: "Palatino Linotype",Palatino,Georgia,"Book Antiqua",helvetica,sans-serif;
   color: #666;
}
Logged
Mr Anderson
DDN Contribs
Hero Member
*****
Posts: 2213



ap4a.uk ap4a
View Profile WWW Awards
« Reply #3 on: August 05, 2010, 01:25:42 PM »

It's the markup I need to see. So I know what tags, IDs and/or classes are in use.
Logged

danrocha
Newbie
*
Posts: 16



View Profile Awards
« Reply #4 on: August 05, 2010, 01:29:28 PM »

Im sorry, I dont know what markup is, Im very very new to all of this Sad

Dan
Logged
Mr Anderson
DDN Contribs
Hero Member
*****
Posts: 2213



ap4a.uk ap4a
View Profile WWW Awards
« Reply #5 on: August 05, 2010, 02:19:52 PM »

Im sorry, I dont know what markup is, Im very very new to all of this Sad


I need to see the relevant part that has the HTML and Wordpress template tags, like you showed in your other thread but this time the part for the the post footer/comments indicator part that you're asking about.
Logged

danrocha
Newbie
*
Posts: 16



View Profile Awards
« Reply #6 on: August 05, 2010, 02:36:58 PM »

Ok, I hope this is what you are after...

<div id="post_content">

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<?php the_date('','<h2>','</h2>'); ?>

   <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
       <h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
      <!-- <div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> &#8212; <?php the_tags(__('Tags: '), ', ', ' &#8212; '); ?> <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div> -->

      <div class="storycontent">
         <?php the_content(__('(more...)')); ?>
      </div>
       
        <p>Posted in <?php the_category(',') ?></p>

      <div class="feedback">
         <?php wp_link_pages(); ?>
         <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
      </div>

   </div>



   <?php comments_template(); // Get wp-comments.php template ?>

   <?php endwhile; else: ?>
      <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
   <?php endif; ?>

   <?php posts_nav_link(' &#8212; ', __('&laquo; Newer Posts'), __('Older Posts &raquo;')); ?>

Logged
Mr Anderson
DDN Contribs
Hero Member
*****
Posts: 2213



ap4a.uk ap4a
View Profile WWW Awards
« Reply #7 on: August 05, 2010, 03:30:52 PM »

You can either target the feedback ID like this #feedback a:link { } if you want all the links in that section styled the same, or add a class to the comments_popup_link tag: http://codex.wordpress.org/Function_Reference/comments_popup_link
Logged

danrocha
Newbie
*
Posts: 16



View Profile Awards
« Reply #8 on: August 06, 2010, 08:33:08 AM »

Im sorry, thats completely over my head and I wouldnt even know where to start.

I much appreciate your help though.

Dan
Logged
Matt
DDN Contribs
Hero Member
*****
Posts: 1652



View Profile WWW Awards
« Reply #9 on: August 06, 2010, 11:37:14 AM »

Im sorry, thats completely over my head and I wouldnt even know where to start.

I much appreciate your help though.

Dan

Then with all due respect, pay a pro or use a theme you like, or spend lots of time working it out and learning it.
Logged

danrocha
Newbie
*
Posts: 16



View Profile Awards
« Reply #10 on: August 06, 2010, 12:05:22 PM »

I just assumed it would be quite straight forward, I have managed to change the text on every element of the site, just not the element that displays number of comments or the categories the post relates to.

Never mind, thanks anyway.
Logged
Mr Anderson
DDN Contribs
Hero Member
*****
Posts: 2213



ap4a.uk ap4a
View Profile WWW Awards
« Reply #11 on: August 06, 2010, 01:53:08 PM »

I agree with Matt, however:

Code:
      <div class="feedback">
         <?php wp_link_pages(); ?>
         <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)'), 'comments-link'); ?>
      </div>

Code:
.comments-link { color: f00; }

Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!