• msalmeron

    (@msalmeron)


    I created a copy of the twenty ten theme on my host server, renamed it and edited that theme so that I can integrate the loop to look like the rest of my site. So far I have edited the index.php, header.php, single.php, and footer.php. When looking at a specific post I am no longer able to comment on it. I click on login at the bottom to leave a reply, I enter my password but it just goes back to the post page without the comment box and without the dashboard at the top. Now, if I click on a category on the sidebar it will bring up the category page and it is not in sync with the rest of my site because I have not edited the category.php I think it is, I see the dashboard at the top though. I want to be able to leave comments while on a post page and be able to access the dashboard at the top of the page while on a single post page. Here is the code for single.php. Let me know if you need anything. Thanks for the help in advance.

    <?php
    /**
     * The Template for displaying all single posts.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    
    get_header(); ?>
    
    <div align=center>
    <table cellpadding=10 border=0 width="990">
    <tr>
    <td align=center>
    
    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-1311398213772065";
    /* main */
    google_ad_slot = "1873501287";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="https://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    
    </td>
    </tr>
    </table>
    </div>
    
    <div align=center>
    <table cellspacing="0" cellpadding="0" background="https://www.vlffl.com/images/static/corner/top_header.jpg" width="990" height="58" id="divborder">
    <tr>
    <td></td>
    </tr>
    </table>
    </div>
    
    <div align=center>
    <table cellspacing="0" cellpadding="0" bgcolor="#ffffff" width="990" height="500" id="divborder">
    <tr>
    <td align=left>
    
    		<div id="container">
    			<div id="content" role="main">
    
    			<?php
    			/* Run the loop to output the post.
    			 * If you want to overload this in a child theme then include a file
    			 * called loop-single.php and that will be used instead.
    			 */
    			get_template_part( 'loop', 'single' );
    			?>
    
    			</div><!-- #content -->
    		</div><!-- #container -->
    
    </td>
    
    <td valign=top>
    <?php get_sidebar(); ?>
    </td>
    </tr>
    </table>
    </div>
    
    <?php get_footer(); ?>
Viewing 16 replies (of 16 total)
  • Thread Starter msalmeron

    (@msalmeron)

    So I went with samfusion’s option. Enabled guest commenting and that works great, I will leave things like that. And it still shows the avatars we had set if you use your email address and that is all I really wanted. Thanks for your time though voodoo. You are probably right but I got really lazy on this one, just going the easy route. Thanks

Viewing 16 replies (of 16 total)
  • The topic ‘Unable to comment on custom theme’ is closed to new replies.