arjunjassal
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Very slow WP websiteThanks Songdogtech!
Is there no other way to solve this, apart from changing hosting?Forum: Fixing WordPress
In reply to: comments do show up on posts pageJust checked.
Yes, there is php file called ‘single post’ which has comments_template();
Comments php however, does not have anything called ‘comment_form()’.
Do you think its something to do with what I mentioned in the forum post above?Forum: Fixing WordPress
In reply to: comments do show up on posts pageI’ll just have a look.
But the plot thickens.
I just published a new post, on its own, it shows up perfectly, with the comments et al: https://arjunjassal.com/?p=353
But on the page that I am posting to (the blog page), I get the latest page, but no comments box….https://arjunjassal.com/?page_id=19
This is so strange…Forum: Fixing WordPress
In reply to: comments do show up on posts pageHi Samuel
Your right its a page.
But I am publishing my posts onto that page (its a ‘blog’ page).
Thus, I want the comments box to show up there.
The strange thing, is that if is select ‘allow comments’ on any other page, the comments box shows up. On this page though, it just doesnt.
I also didnt quite understand how rss would solve that problem!
Thanks!
ArjunForum: Themes and Templates
In reply to: Footer displaying incorrectlyThanks for that.
I cant seem to find the <?php comments_template(); ?> line anywhere in the PHP that came with the template (using koi, if that helps).
Did go through the comments file (php), this is what it looks like.<?php
// Do not delete these lines
if (!empty($_SERVER[‘SCRIPT_FILENAME’]) && ‘comments.php’ == basename($_SERVER[‘SCRIPT_FILENAME’]))
die (‘Please do not load this page directly. Thanks!’);if ( post_password_required() ) { ?>
<p class=”nocomments”>This post is password protected. Enter the password to view comments.</p>
<?php
return;
}
?><!– You can start editing here–>
<?php if ( have_comments() ) : ?>
<div class=”commentwrap”>
<h4 id=”comments” class=”comment-title”><?php comments_number(__(‘No Comments’,’themify’), __(‘One Comment’,’themify’), __(‘% Comments’,’themify’) );?></h4><div class=”next-prev-comment”>
<span class=”prev”><?php previous_comments_link(__(‘« Older Comments’,’themify’)) ?></span>
<span class=”next”><?php next_comments_link(__(‘Newer Comments »’,’themify’)) ?></span>
</div><ol class=”commentlist”>
<?php wp_list_comments(‘callback=custom_theme_comment’); ?></div><!–/commentwrap –>
<?php else : // this is displayed if there are no comments so far ?><?php if ( comments_open() ) : // if comment is open, but no comments yet ?>
<?php else : // comments are closed ?>
<?php endif; ?>
<?php endif; ?><?php if ( comments_open() ) : ?>
<div id=”respond”>
<h4 class=”comment-title”><?php comment_form_title( __(‘Leave a Reply’,’themify’), __(‘Leave a Reply to %s‘,’themify’) ); ?></h4>
<p class=”cancel-comment-reply”>
<?php cancel_comment_reply_link(__(‘Cancel’,’themify’)); ?>
</p><?php if ( get_option(‘comment_registration’) && !is_user_logged_in() ) : ?>
<p><?php _e(‘You must be’,’themify’); ?> “><?php _e(‘logged in’,’themify’); ?> <?php _e(‘to post a comment’,’themify’); ?>.</p>
<?php else : ?><form action=”<?php echo get_option(‘siteurl’); ?>/wp-comments-post.php” method=”post” id=”commentform”>
<?php if ( is_user_logged_in() ) : ?>
<p><?php _e(‘Logged in as’,’themify’); ?> /wp-admin/profile.php”><?php echo $user_identity; ?>. ” title=”<?php _e(‘Log out of this account’,’themify’); ?>”><?php _e(‘Log out’,’themify’); ?> »</p>
<?php else : ?>
<p><input type=”text” name=”author” id=”author” value=”<?php echo esc_attr($comment_author); ?>” size=”22″ tabindex=”1″ <?php if ($req) echo “aria-required=’true'”; ?> />
<label for=”author”><?php _e(‘Name’,’themify’);?> <small><?php if ($req) _e(‘(required)’,’themify’); ?></small></label></p><p><input type=”text” name=”email” id=”email” value=”<?php echo esc_attr($comment_author_email); ?>” size=”22″ tabindex=”2″ <?php if ($req) echo “aria-required=’true'”; ?> />
<label for=”email”>Mail <small><?php if ($req) _e(‘(required)’,’themify’); ?></small></label></p><p><input type=”text” name=”url” id=”url” value=”<?php echo esc_attr($comment_author_url); ?>” size=”22″ tabindex=”3″ />
<label for=”url”><?php _e(‘Website’,’themify’); ?></label></p><?php endif; ?>
<!–<p><small>XHTML: You can use these tags:
<?php echo allowed_tags(); ?>
</small></p>–><p><textarea name=”comment” id=”comment” cols=”58″ rows=”10″ tabindex=”4″></textarea></p>
<p><input name=”submit” type=”submit” id=”submit” tabindex=”5″ value=”<?php _e(‘Submit Comment’,’themify’); ?>” />
<?php comment_id_fields(); ?>
</p>
<?php do_action(‘comment_form’, $post->ID); ?></form>
<?php endif; // If registration required and not logged in ?>
</div><!–/respond –><?php endif; // if you delete this the sky will fall on your head ?>
Let me know if this has any clues in it!
Thanks a bunch!Forum: Themes and Templates
In reply to: Footer displaying incorrectlyThanks for that.
I cant seem to find the <?php comments_template(); ?> line anywhere in the PHP that came with the template (using koi, if that helps).
Did go through the comments file (php), this is what it looks like.<?php
// Do not delete these lines
if (!empty($_SERVER[‘SCRIPT_FILENAME’]) && ‘comments.php’ == basename($_SERVER[‘SCRIPT_FILENAME’]))
die (‘Please do not load this page directly. Thanks!’);if ( post_password_required() ) { ?>
<p class=”nocomments”>This post is password protected. Enter the password to view comments.</p>
<?php
return;
}
?><!– You can start editing here–>
<?php if ( have_comments() ) : ?>
<div class=”commentwrap”>
<h4 id=”comments” class=”comment-title”><?php comments_number(__(‘No Comments’,’themify’), __(‘One Comment’,’themify’), __(‘% Comments’,’themify’) );?></h4><div class=”next-prev-comment”>
<span class=”prev”><?php previous_comments_link(__(‘« Older Comments’,’themify’)) ?></span>
<span class=”next”><?php next_comments_link(__(‘Newer Comments »’,’themify’)) ?></span>
</div><ol class=”commentlist”>
<?php wp_list_comments(‘callback=custom_theme_comment’); ?></div><!–/commentwrap –>
<?php else : // this is displayed if there are no comments so far ?><?php if ( comments_open() ) : // if comment is open, but no comments yet ?>
<?php else : // comments are closed ?>
<?php endif; ?>
<?php endif; ?><?php if ( comments_open() ) : ?>
<div id=”respond”>
<h4 class=”comment-title”><?php comment_form_title( __(‘Leave a Reply’,’themify’), __(‘Leave a Reply to %s‘,’themify’) ); ?></h4>
<p class=”cancel-comment-reply”>
<?php cancel_comment_reply_link(__(‘Cancel’,’themify’)); ?>
</p><?php if ( get_option(‘comment_registration’) && !is_user_logged_in() ) : ?>
<p><?php _e(‘You must be’,’themify’); ?> “><?php _e(‘logged in’,’themify’); ?> <?php _e(‘to post a comment’,’themify’); ?>.</p>
<?php else : ?><form action=”<?php echo get_option(‘siteurl’); ?>/wp-comments-post.php” method=”post” id=”commentform”>
<?php if ( is_user_logged_in() ) : ?>
<p><?php _e(‘Logged in as’,’themify’); ?> /wp-admin/profile.php”><?php echo $user_identity; ?>. ” title=”<?php _e(‘Log out of this account’,’themify’); ?>”><?php _e(‘Log out’,’themify’); ?> »</p>
<?php else : ?>
<p><input type=”text” name=”author” id=”author” value=”<?php echo esc_attr($comment_author); ?>” size=”22″ tabindex=”1″ <?php if ($req) echo “aria-required=’true'”; ?> />
<label for=”author”><?php _e(‘Name’,’themify’);?> <small><?php if ($req) _e(‘(required)’,’themify’); ?></small></label></p><p><input type=”text” name=”email” id=”email” value=”<?php echo esc_attr($comment_author_email); ?>” size=”22″ tabindex=”2″ <?php if ($req) echo “aria-required=’true'”; ?> />
<label for=”email”>Mail <small><?php if ($req) _e(‘(required)’,’themify’); ?></small></label></p><p><input type=”text” name=”url” id=”url” value=”<?php echo esc_attr($comment_author_url); ?>” size=”22″ tabindex=”3″ />
<label for=”url”><?php _e(‘Website’,’themify’); ?></label></p><?php endif; ?>
<!–<p><small>XHTML: You can use these tags:
<?php echo allowed_tags(); ?>
</small></p>–><p><textarea name=”comment” id=”comment” cols=”58″ rows=”10″ tabindex=”4″></textarea></p>
<p><input name=”submit” type=”submit” id=”submit” tabindex=”5″ value=”<?php _e(‘Submit Comment’,’themify’); ?>” />
<?php comment_id_fields(); ?>
</p>
<?php do_action(‘comment_form’, $post->ID); ?></form>
<?php endif; // If registration required and not logged in ?>
</div><!–/respond –><?php endif; // if you delete this the sky will fall on your head ?>
Let me know if this has any clues in it!
Thanks a bunch!Forum: Themes and Templates
In reply to: Footer displaying incorrectlyThanks Alchymyth!
These values completely escaped me, will be experimenting with them soon, to get the layout just right.Just one more thing though, no matter what I do, I’m completely unable to get the comments box show up under the posts. Have tried everything I know. Any idea on why its not showing up?
(it shows up on all pages, except the one with the posts on it).
Please have a look here: https://arjunjassal.com/?page_id=19
Forum: Themes and Templates
In reply to: Footer displaying incorrectlyThanks!
Removed the min height bit (made it 0px).
Thats helped.
But, if possible, I would want the footer to display a little higher still.
Any suggestions?Forum: Themes and Templates
In reply to: cant see comments formattingYes, the footer still needs work.
I have allowed comments on the post. (and the page on which its posted, ie ‘blog’). But the comments box doesnt show up.
Its strange cause if I allow comments on any other page, the comments box shows up.Forum: Installing WordPress
In reply to: formatting destroyed on page for postsI suspect it does.
Because the comments box, does show up on all the other pages.
It is strange that, it just doesnt show up on the page where the posts are displayed.
Thanks again!Forum: Installing WordPress
In reply to: formatting destroyed on page for postsThanks for your quick response and apologies for the double posting.
Removing the Google verification did the trick.
Unfortunately, the theme generates PHP, Which is a trying to grasp now, no totally didnt see the tag problems.While the page is displaying correctly now, the space for user comments isnt showing up. This is after I have selected the ‘allow comments’ check box in both the page and the post. How can this be fixed?
Furthermore, the I am still getting 2 errors in the validator. https://validator.w3.org/check?uri=https://arjunjassal.com/%3Fpage_id%3D19&charset=(detect+automatically)&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator/1.654
These are because, I am suppressing the footer, by converting the entire footer.php into a comment. Is this causing the comment problem as well?Thank you for your help and patience!