• Resolved dogette

    (@dogette)


    Does anyone know how to fix a WP theme where you can’t bring up a comment form for a post on a main page without “knowing” (somehow) that you need to click on the specific post’s title-link to bring up the comment box/form?

    In other words, say you are on the front page of the blog and you want to comment on the top (newest) post. But at the bottom of the post it only shows “2 comments” and it’s not a clickable link! You can’t get to the comment box. You cannot CLICK on that area and open a comment box to add your own comment.

    Instead, you are apparently supposed to “know” that you need to click on the post’s TITLE (above at the top) which then opens the comment box for you BELOW the post?

    WTH? I think I saw this in another theme once and I can’t remember how to fix it. Seems like you would add a template tag somewhere in index.php but I have no clue, honestly, and would VERY MUCH appreciate help!

    Also, how do you add “by author” (name) to the meta at the bottom of posts? And where do you put the code?

    Thanks for clues! ?? Sorry but I DID search and maybe I didn’t word it right but I couldn’t find an answer for the comment box hiding thing.

Viewing 5 replies - 1 through 5 (of 5 total)
  • for adding an author name, open theme’s index.php and below the_content add
    <?php the_author() ?>
    always back up 1st

    for the comment code, open theme’s index.php and find current comment code and replace with
    <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
    always back up 1st

    Thread Starter dogette

    (@dogette)

    samboll, thank you so much! Worked!

    I actually figured out the author tag myself, but I was still bumbling around in templates trying to fix the comment box thing.

    Again, THANK YOU!!! ??

    hopefully you guys can help… i have the same template as samboll is the greyzed but when your not the administrator of the website and you try to post a comment it does not let the cursor stay on the comment section.. it just jumps to the website text box.
    heres the site wwww.phreeon.com
    i could use any help
    thanks

    I am having the problem with no “comment” link showing up at the end of the post. I looked at my theme’s index.php page, but there is no comment code there at all. The is the only code it has…

    <?php
    /**
     * The main template file.
     *
     * This is the most generic template file in a WordPress theme
     * and one of the two required files for a theme (the other being style.css).
     * It is used to display a page when nothing more specific matches a query.
     * E.g., it puts together the home page when no home.php file exists.
     * Learn more: https://codex.www.ads-software.com/Template_Hierarchy
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    
    get_header(); ?>
    
    		<div id="container">
    			<div id="content" role="main">
    
    			<?php
    			/* Run the loop to output the posts.
    			 * If you want to overload this in a child theme then include a file
    			 * called loop-index.php and that will be used instead.
    			 */
    			 get_template_part( 'loop', 'index' );
    			?>
    			</div><!-- #content -->
    		</div><!-- #container -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    I know this post is “Resolved” but I would greatly appreciate a response.

    Thank you!

    @mallenwsp1: your issue is unrelated. You should start a new Topic.

    By the way, the template file you want to inspect will be “loop.php” or “loop-index.php”.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can’t Comment Unless Click On Post Title Link Itself On Main Pg — Not Intuitive’ is closed to new replies.