Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Comments, trackbacks & pings »

Styling "Comments are closed"


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Apr 13, 2011, 04:19 AM
Jam's Avatar
Jam
 
1,067 posts · Mar 2011
Perth, Western Australia
Hi all, I did a search but only found how to remove "Comments are closed". I would like to retain the words but be able to style them to match the rest of the text in that line (that lists categories the post is included in).
Currently on a page that lists all posts in a category, "Comments are closed" is bold on each post extract, I'd like to remove that attribute.

Example category page

On the page of the post alone, the "Comments are closed" (at the bottom of post) is not bold, and not uppercase.

Atahualpa 3.4.9,
thanks in advance
  #2  
Old Apr 13, 2011, 04:25 AM
juggledad's Avatar
juggledad
 
22,166 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
Look at the source, find the element, use it's ID or CLASS to create a CSS selector ant rule and put them in the CSS Inserts
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #3  
Old Apr 13, 2011, 05:06 AM
Jam's Avatar
Jam
 
1,067 posts · Mar 2011
Perth, Western Australia
Hmm, thanks Juggledad,
I was able to add to CSS inserts

Quote:
div.post-footer {
font-weight: normal;
text-transform: uppercase;
}
but "Comments are closed" was still bold. I did some googling and found the CSS rule to lighten and added !important and finally was unbold. Not ideal, but normal, even with !important did nothing.

This will do me,

Quote:
div.post-footer {
font-weight: lighter !important;
text-transform: uppercase;
}
thanks again.

Last edited by Jam; Apr 13, 2011 at 05:10 AM.
  #4  
Old Jun 11, 2011, 05:08 AM
Jam's Avatar
Jam
 
1,067 posts · Mar 2011
Perth, Western Australia
Update from jasonb (PM'd to me as Post was Closed)

Quote:
I came across your post because I had exactly the same problem. However, I found the proper solution.

The issue is that the Atahualpa theme doesn't allow this to be styled, except with the quasi-"shotgun" approach that you came up with. Rather, it forces the bold on you in the php code itself. But it's easily fixed.

Edit functions/bfa_postinfo.php and make the following change around line 323:

Before
Code:

if (!comments_open() ) {
if ($post->comment_count == 0) {
$comment_link = '<strong>' . $comment_matches[8] . '</strong>';
} else {
$comment_link = $comment_link . ' - <strong>(' . $comment_matches[8] . ')</strong>';
}

After
Code:

if (!comments_open() ) {
if ($post->comment_count == 0) {
$comment_link = $comment_matches[8];
} else {
$comment_link = $comment_link . ' - (' . $comment_matches[8] . ')';
}

That's the correct fix. (In my case I also removed the "- ()" in the second section - so I can manually add it to my comments closed text if I want it.)

You could also replace the original <strong> with <div name="comments-closed"> so that you could properly style it back in the HTML/CSS Inserts section in case you wanted more control.

If you could reopen your thread and post this there for others that would be great.

Last edited by Jam; Jun 11, 2011 at 05:11 AM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Hiding &quot;comments are closed&quot; pranzyt Comments, trackbacks & pings 10 May 23, 2012 12:39 AM
"comments are closed" issue, with repeating info-items on home page Gravity Comments, trackbacks & pings 0 Mar 23, 2010 10:20 PM
Removal of "Comments are Closed" not working Shell Post-Kicker, -Byline & -Footer 2 Mar 2, 2010 07:06 AM
"Comments are closed" problem opening them scott1137 Comments, trackbacks & pings 15 Dec 28, 2009 09:13 AM
[SOLVED] How to remove &quot;comments are closed&quot; from the end of posts wylde1der Post-Kicker, -Byline & -Footer 3 Dec 14, 2009 05:45 AM


All times are GMT -6. The time now is 03:53 PM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.