Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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
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,655 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 06:44 AM.


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