Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   [SOLVED] Zero comment / add comment. (http://forum.bytesforall.com/showthread.php?t=21554)

suwak Feb 23, 2014 04:07 PM

[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

juggledad Feb 23, 2014 05:23 PM

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>

suwak Feb 26, 2014 03:02 PM

Thank you, this works perfectly!


All times are GMT -6. The time now is 07:18 PM.

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