Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] Zero comment / add comment.


  #1  
Old Feb 23, 2014, 04:07 PM
suwak
 
15 posts · Jun 2010
[SOLVED] Zero comment / add comment.

Hello.

I've got two questions about comments and balloons.

Is there a way to display the comment balloon when there are no comments, that is showing the zero in the balloon?

And is there a way to add 'add comment' text that would link to given post comments form, somewhere in postformat.php next to post categories for example.

Thank you in advance for any help.

Best,
Tomek
  #2  
Old Feb 23, 2014, 05:23 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
Is there a way to display the comment balloon when there are no comments, that is showing the zero in the balloon?
you will need to edit the theme code. Edit the file 'includes/template_tags.php' and change line 29 from
HTML Code:
	if( $number > 0 && comments_open( $id ) && ! post_password_required( $id ) )
to
HTML Code:
//	if( $number > 0 && comments_open( $id ) && ! post_password_required( $id ) )
Quote:
is there a way to add 'add comment' text that would link to given post comments form
in the theme options, edit the Sub Template 'postformat.php', find the line
HTML Code:
		<p class="post-categories"><?php the_category( ' &middot; ' ); ?></p>
and add the following line right after it
HTML Code:
<a href="<?php the_permalink(); ?>#respond" title="<?php the_title_attribute(); ?>" rel="bookmark">make a comment</a>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Feb 26, 2014, 03:02 PM
suwak
 
15 posts · Jun 2010
Thank you, this works perfectly!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Name/Email/Comment field styling and existing comment link colors fcitino Comments, trackbacks & pings 4 Mar 4, 2013 12:37 PM
[SOLVED] Website in comment form leads to author name as a link in the comment list --yeah--wow Comments, trackbacks & pings 2 Jun 2, 2011 08:34 PM
[SOLVED] BUGFIX - 3.4.1-&gt;3.4.6 - Comment form will not show up after first comment on juggledad Comments, trackbacks & pings 49 Jul 29, 2010 06:01 PM
Changing the comment links to send to the comment form johnd28 Comments, trackbacks & pings 5 Jun 15, 2010 02:33 AM


All times are GMT -6. The time now is 10:13 AM.


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