Let’s say you have customized your mobilepress by putting your logo and custom menu and you have even started writing articles. If you look at the post you have written, you will not see a comment box by default except you click “view or write a comment” which sucks, right? Most readers who want to comment find it hard to click the view and write comment. So today we are going to make the comment box appear in the post by calling it out like the screen shot below
So how do we achieve this? No worries because it is very simple and you don’t need to know codes, just follow my lead.
NOTE: before you start coding always make sure you do a backup before performing any operation.
First: Log in to your control panel and locate your mobilepress theme folder by going to >> Public_html/wp-content/plugins/mobilepress/system/ theme/ default/
We are going to edit two files here which are; single.php and page.php
Ok now, open your page.php with your c-panel editor and locate the below codes.
<p><a href="<?php the_permalink(); ?><?php mopr_check_permalink(); ?>comments=true">View</a> or <a href="<?php the_permalink() ?><?php mopr_check_permalink(); ?>postcomment=true">Post</a> Comments.</p>
If you have seen the codes then under it put this below code
<div align=”left”> <?php include(‘postcomment.php’); ?> </div>
So the code will look exactly like the one below
<p><a href="<?php the_permalink(); ?><?php mopr_check_permalink(); ?>comments=true">View</a> or <a href="<?php the_permalink() ?><?php mopr_check_permalink(); ?>postcomment=true">Post</a> Comments.</p>
<div align="center"> <?php include('postcomment.php'); ?> </div>
Now save it. We have just done the first step so it will not show yet
We have accomplished the first step now onto the second step. Now go to “single.php” open it with cpanel editor and locate the below codes.
<p><a href="<?php the_permalink(); ?><?php mopr_check_permalink(); ?>comments=true">View</a> or <a href="<?php the_permalink() ?><?php mopr_check_permalink(); ?>postcomment=true">Post</a> Comments.</p>
It is similar to the first code, right? Now underneath the code put in this below code
<div align="center"> <?php include('postcomment.php'); ?> </div>
If you’ve put in the code, it will look like the codes below
<p><a href="<?php the_permalink(); ?><?php mopr_check_permalink(); ?>comments=true">View</a> or <a href="<?php the_permalink() ?><?php mopr_check_permalink(); ?>postcomment=true">Post</a> Comments.</p>
<div align="center"> <?php include('postcomment.php'); ?> </div>
Now save it and view your post. The comment box has appeared right? Yeah I thought so. That’s how to do it.
If this post is of help to you in any way, please share us and like the post and don’t forget to recommend us with friends.