Could you post your site address? I know nothing about php, but if noone else is going to answer, we might be able to figure this out. We need to see the order of things by looking at your site. I think I already have an idea to fix it, but want to see your site first.
Nick
(@nischalmaniar)
You will have to edit the “item.php” file. In order to move the comments link below the post.
thanks, where exactly in the code should i move the comments part?
nevermind i got it.. thanks. if i want to change the display of the comments to say something like.. discuss this post, or discussion.. is that in the CSS or another file?
(@costarep22)
14 years, 3 months ago
I want to move the comments link from above the post (right now it’s top right) to below the post (bottom right). I’m pretty sure it involves modifying the code in the index.php or single.php, but I’m not sure exactly where to move it because my php knowledge is very basic at this point.
The theme is white-gold.
Here’s the code for the single.php:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<?php
$options = get_option(‘wg_options’);
?>
<?php get_header(); ?>
</head>
<body>
<div id=”wrapper”>
<?php include(TEMPLATEPATH . “/banner.php”); ?>
<?php include(TEMPLATEPATH . “/menu.php”); ?>
<div id=”content”>
<?php include(TEMPLATEPATH . “/leftsidebar.php”); ?>
<div class=”container”>
<ul class=”posts”>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php if (function_exists(‘wp_list_comments’)): ?>
<!– WP 2.7 and above –>
<?php comments_template(”, true); ?>
<?php else : ?>
<!– WP 2.6 and below –>
<?php comments_template(); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>
</div>
<?php include(TEMPLATEPATH . “/rightsidebar.php”); ?>
</div>
<?php get_footer(); ?>
</div>
</body>
</html>
Here’s the code for the index.php:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<?php
$options = get_option(‘wg_options’);
?>
<?php get_header(); ?>
</head>
<body>
<div id=”wrapper”>
<?php include(TEMPLATEPATH . “/banner.php”); ?>
<?php include(TEMPLATEPATH . “/menu.php”); ?>
<div id=”content”>
<?php include(TEMPLATEPATH . “/leftsidebar.php”); ?>
<div class=”container”>
<ul class=”posts”>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php if (function_exists(‘wp_list_comments’)): ?>
<!– WP 2.7 and above –>
<?php comments_template(); ?>
<?php else : ?>
<!– WP 2.6 and below –>
<?php comments_template(); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>
<div class=”navigation”>
<?php include(TEMPLATEPATH . “/navigation.php”); ?>
</div>
<?php } ?>
</div>
<?php include(TEMPLATEPATH . “/rightsidebar.php”); ?>
</div>
<?php get_footer(); ?>
</div>
<!– Start of StatCounter Code –>
<script type=”text/javascript”>
var sc_project=5455811;
var sc_invisible=1;
var sc_partition=60;
var sc_click_stat=1;
var sc_security=”74841371″;
</script>
<script type=”text/javascript”
src=”http://www.statcounter.com/counter/counter.js”></script><noscript><div
class=”statcounter”><a title=”wordpress hit counter”
href=”http://www.statcounter.com/wordpress.com/”
target=”_blank”><img class=”statcounter”
src=”http://c.statcounter.com/5455811/0/74841371/1/”
alt=”wordpress hit counter” ></div></noscript>
<!– End of StatCounter Code –>
</body>
</html>