Support » Fixing WordPress » Adding Comments to Static Pages

  • Hey Guys,

    I’ve actually read a number of threads already in which people have solved this problem. It clearly involves adding the “comments” code to the page.php file… this automatically popping up that whole comments thingy on the bottom of your page.

    However, every single time I try to add any of the codes, my site breaks down completely and I can’t view anything.

    To be perfectly honest, I don’t think that I know WHERE to add any of the codes in the page.php file.

    I’m not good at this aspect of wordpress… I’m pretty much only good at searching for plugins… now I have failed.

    I will post my page.php code as a reply to this thread.

    Thank you in advance for your time and help with this.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter mrwizard64

    (@mrwizard64)

    <?php
    
    function render_content() {
    
    ?>
    	<?php if ( have_posts() ) : ?>
    		<div class="loop">
    			<div class="loop-content">
    				<?php while ( have_posts() ) : // The Loop ?>
    					<?php the_post(); ?>
    
    					<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    						<!-- title, meta, and date info -->
    						<div class="entry-header clearfix">
    								<h1 class="entry-title"><?php the_title(); ?></h1>
    						</div>
    
    						<!-- post content -->
    						<div class="entry-content clearfix">
    							<?php the_content(); ?>
    						</div>
    
    						<div class="entry-footer clearfix">
    							<?php wp_link_pages( array( 'before' => '<p class="entry-utility"><strong>' . __( 'Pages:', 'it-l10n-BuilderChild-Gallery-Church' ) . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number' ) ); ?>
    							<?php edit_post_link( __( 'Edit this entry.', 'it-l10n-BuilderChild-Gallery-Church' ), '<p class="entry-utility edit-entry-link">', '</p>' ); ?>
    						</div>
    					</div>
    					<!-- end .post -->
    
    					<?php comments_template(); // include comments template ?>
    				<?php endwhile; // end of one post ?>
    			</div>
    		</div>
    	<?php else : // do not delete ?>
    		<?php do_action( 'builder_template_show_not_found' ); ?>
    	<?php endif; // do not delete ?>
    <?php
    
    }
    
    add_action( 'builder_layout_engine_render_content', 'render_content' );
    
    do_action( 'builder_layout_engine_render', basename( __FILE__ ) );

    [Please post code or markup between backticks or use the code button. Or better still – use a pastebin. Your posted code may now have been permanently damaged/corrupted by the forum’s parser.]

    Where did you download this theme from?

    Thread Starter mrwizard64

    (@mrwizard64)

    Ithemes.

    Though I believe my “support period” has expired and I don’t think they are obligated to answer my questions anymore

    I’m sorry but as you are using a commercial theme, you need to seek support from the theme’s developer/vendor. We do not support commercial products here.

    Thread Starter mrwizard64

    (@mrwizard64)

    Oh… I’m sorry.

    You wouldn’t even be able to tell me where to stick the code in that whole mess? I think I have the codes I need… I just don’t know where to put them.

    Have you tried looking in comments.php?

    Thread Starter mrwizard64

    (@mrwizard64)

    100 percent… I see tons of stuff in there but I wouldn’t know what to copy and paste or where. Everything I do breaks the whole site. In case you are still interested or capable, here is the commments.php file:

    [use a pastebin to post code here – http://codex.wordpress.org/Forum_Welcome#Posting_Code%5D

    Thread Starter mrwizard64

    (@mrwizard64)

    [use a pastebin to post code here – http://codex.wordpress.org/Forum_Welcome#Posting_Code%5D

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Adding Comments to Static Pages’ is closed to new replies.