The process of helping search engines, small businesses and web searchers find agreement.
RSS:
Publications
Comments

Enable Comments eMoms Legacy Theme

It took me a while to get this to work, searching around for an eMoms Legacy theme specific fix to enable comments on main pages but I found it – sort of and played around with it for a while.  Here’s how to edit the eMoms Legacy theme to allow comments:

Go to the wp-content/themes/emoms-legacy folder on your site and copy the css.style file AND the page.php file to your computer (make backups of both of them too just in case you screw up).

With a text editor (Notepad.exe works fine) open the file and add this to the very bottom of what’s in that file:

#commentform textarea
{
width: 526px;
padding: 2px;
}

Then save it and upload it again to the site (that’s part one).

Now, part two is to open the page.php file with the text editor and add the line

<?php if ((“open” == $post-> comment_status)) { comments_template(); } ?>

Your file should look something like this (newer updated versions of the theme might look different in the future):

<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div id=”post-<?php the_ID(); ?>”>
<!– google_ad_section_start –>
<?php include (TEMPLATEPATH . “/post-head.php”); ?>
<div>
<?php the_content(‘Continue reading “‘.the_title(”,”,false).’”‘); ?>
<div>&nbsp;</div>
</div>
<!– google_ad_section_end –>
</div>
<?php if ((“open” == $post-> comment_status)) { comments_template(); } ?>
<?php endwhile; ?>
<?php else : ?>
<?php include (TEMPLATEPATH . “/404content.php”); ?>
<?php endif; ?>
<?php get_footer(); ?>

The main thing is to keep the line I told you to add down a bit more toward the bottom so that the “Comment on this post” box is UNDER your post, otherwise, if you insert the line too close to the top of the above coded area your “Leave Comment” will be on top of your post (which looks stupid).

Do it exactly the way I wrote it and it will work for enabling comments in the Emoms Legacy theme.  If you are using a different theme, you might try using the same fix – but if it doesn’t work then instead of inserting the line:

<?php if ((“open” == $post-> comment_status)) { comments_template(); } ?>

in the page.php file try using the line:

<?php if ((‘open’ == $post-> comment_status)) { comments_template(); } ?>

instead.

The only difference between the two is that one has the ‘open’ with single quote marks and the other uses “open” with double quotation marks.

Emoms Legacy requires the one with the double quotations.

This should help you save some time. It should work. If not, try contacting Wendy Piersall the Emoms Legacy theme developer.

To get the other changes in appearance I either substituted images or played around in the style.css file (font changes, color changes) until I got it to look the way I wanted.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Add to favorites
  • email
  • Faves
  • FriendFeed
  • LinkedIn
  • Live
  • MySpace
  • StumbleUpon
  • Technorati
  • Twitter
  • PDF
  • Print
  • RSS

Leave a Reply

You can 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>