Bob's Blog about WordPress, Websites, Hosting, Computers and the Internet

Add Comments To Artisteer Pages

WordPress Themes created with Artisteer Software do not have the comment feature like posts do. To display comments on your pages you must add some code to your page.php file. We usually create a seperate page template to allow pages with comments and pages without. Modifying your page.php file will put comments on all your pages and then you can turn them on or off in the editor when you create or edit your page. To add the code needed read on.

Post this code:

<?php comments_template(); ?>

After this:

<?php if (is_search()) the_excerpt(); else the_content(__('Read the
rest of this entry &raquo;', 'kubrick')); ?>

And Before this:

</div>
<div class="cleared"></div>
<?php ob_start(); ?>

Should end up looking similar to this:

</div>
<?php endif; ?>
<div class="PostContent">
<?php if (is_search()) the_excerpt(); else the_content(__('Read the
rest of this entry &raquo;', 'kubrick')); ?>
<?php comments_template(); ?>   -- This is all we added  --
</div>
<div class="cleared"></div>
<?php ob_start(); ?>
<?php $icons = array(); ?>
<?php if (!is_page()) : ?>

Hope this helps out. Good luck!

LinkedInPinterestShare


Related Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

TigerDirect
Artisteer - CMS Template Generator