moving comments link below post
-
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”
“https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”><html xmlns=”https://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 include (TEMPLATEPATH . “/item.php”); ?>
<?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 include (TEMPLATEPATH . “/missing.php”); ?>
-
<?php include (TEMPLATEPATH . “/item.php”); ?>
<?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 include (TEMPLATEPATH . “/missing.php”); ?>
-
<?php if (!is_page()) { ?>
<div class=”navigation”>
<?php include(TEMPLATEPATH . “/navigation.php”); ?>
</div>
<?php } ?>
<?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”
“https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”><html xmlns=”https://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 endwhile; ?>
<?php else : ?><?php endif; ?>
</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=”https://www.statcounter.com/counter/counter.js”></script><noscript><div
class=”statcounter”><a title=”wordpress hit counter”
href=”https://www.statcounter.com/wordpress.com/”
target=”_blank”><img class=”statcounter”
src=”https://c.statcounter.com/5455811/0/74841371/1/”
alt=”wordpress hit counter” ></div></noscript>
<!– End of StatCounter Code –></body>
</html>
-
<?php include (TEMPLATEPATH . “/item.php”); ?>
- The topic ‘moving comments link below post’ is closed to new replies.