<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>comments link &#8211; Thesis Docs</title>
	<atom:link href="https://diythemes.com/thesis/rtfm/tag/comments-link/feed/" rel="self" type="application/rss+xml" />
	<link>https://diythemes.com/thesis/rtfm</link>
	<description>Documentation, How-tos, and Best Practices for the Thesis WordPress Theme System</description>
	<lastBuildDate>Thu, 18 Jan 2024 16:56:44 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>
	<item>
		<title>Customize Comments Intro</title>
		<link>https://diythemes.com/thesis/rtfm/customize-comments-intro/</link>
		
		<dc:creator><![CDATA[Shelley]]></dc:creator>
		<pubDate>Sat, 05 Dec 2009 21:19:24 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<category><![CDATA[comments intro]]></category>
		<category><![CDATA[comments link]]></category>
		<guid isPermaLink="false">https://diythemes.com/answers/?p=602</guid>

					<description><![CDATA[<ul>
<li>Style Comments Intro</li>
<li>Remove Comments Intro</li>
<li>Replace Comments Intro with "Add a Comment" Link</li>
<li>Remove Brackets</li></ul>]]></description>
										<content:encoded><![CDATA[<p class="note">This article refers to the <code>{1 comment… read it below or add one}</code> message on the single post page; see <a href="/thesis/rtfm/change-0-comments-display/">Change {0 Comments} Display</a> if you&#8217;re looking to change the default comments link on the home page (and other multi-post listing pages).</p>
<h3 id="style_intro">Style Comments Intro <a href="#style_intro" title="Link to this section">∞</a></h3>
<p>Place this code in <code>custom.css</code>:</p>
<pre class="css">
/* Style Comments Intro */
.custom .comments_intro p {
  font-size: 1.818em;
}

/* Style Bracket */
.comments_intro p span.bracket {
  color: #CCCCCC;
}

/* Style "Add One" link */
.custom .comments_intro a {
 color: #2361A1;
 text-decoration: underline;
}
</pre>
<h3 id="remove_intro">Remove Comments Intro <a href="#remove_intro" title="Link to this section">∞</a></h3>
<p>Place this code in <code>custom_functions.php</code>:</p>
<pre class="php">
function remove_comments_intro($content) {
  $content = '';
  return $content;
}
add_filter('thesis_comments_intro', 'remove_comments_intro');
</pre>
<h3 id="replace_intro">Replace Comments Intro with &#8220;Add a Comment&#8221; Link <a href="#replace_intro" title="Link to this section">∞</a></h3>
<p>Place this code in <code>custom_functions.php</code>:</p>
<pre class="php">
function replace_comments_intro($content) {
  $content = '&lt;div class=&quot;comments_intro&quot;&gt;';
  $content .= '&lt;p&gt;&lt;a href=&quot;#respond&quot; rel=&quot;nofollow&quot;&gt;Add a Comment&lt;/a&gt;&lt;/p&gt;';
  $content .= '&lt;/div&gt;' . &quot;\n&quot;;
  return $content;
}
add_filter('thesis_comments_intro', 'replace_comments_intro');
</pre>
<h3 id="remove_brackets">Remove Brackets <a href="#remove_brackets" title="Link to this section">∞</a></h3>
<p>Place this code in <code>custom_functions.php</code>:</p>
<pre class="php">
remove_filter('thesis_comments_intro', 'default_skin_comments_intro');
</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Change {0 Comments} Display</title>
		<link>https://diythemes.com/thesis/rtfm/change-0-comments-display/</link>
		
		<dc:creator><![CDATA[Shelley]]></dc:creator>
		<pubDate>Tue, 07 Apr 2009 16:24:47 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<category><![CDATA[comments link]]></category>
		<guid isPermaLink="false">https://diythemes.com/answers/?p=35</guid>

					<description><![CDATA[<ul>
<li>Change Color of Comments Bracket</li>
<li>Remove {0 Comments} Entirely</li>
<li>Replace {0 Comments} with Custom Link</li>
</ul>]]></description>
										<content:encoded><![CDATA[<p class="note">This article refers to the default comments link on the home page (and other multi-post listing pages); see <a href="/thesis/rtfm/customize-comments-intro/">Customize Comments Intro</a> if you&#8217;re looking to change the <code>{1 comment… read it below or add one}</code> message on the single post page. </p>
<h3 id="chng_color">Change Color of Comments Bracket <a href="#chng_color" title="Link to this section">∞</a></h3>
<p>Place this code in <code>custom.css</code>, replacing <code>#ff0000</code> with the desired color value:</p>
<pre class="css">
.custom .format_text .to_comments <strong>span</strong>.bracket {color: #ff0000;}
</pre>
<h3 id="rem_brac">Remove {0 Comments} Entirely <a href="#rem_brac" title="Link to this section">∞</a></h3>
<p>Place this code in <code>custom_functions.php</code>:</p>
<pre class="php">
remove_action('thesis_hook_after_post', 'thesis_comments_link');
</pre>
<h3 id="repl_brac">Replace {0 Comments} with Custom Link <a href="#repl_brac" title="Link to this section">∞</a></h3>
<p>This code in <code>custom_functions.php</code> replicates the default Thesis code:</p>
<pre class="php">
function my_comments_link() {
  if (!is_single() &amp;&amp; !is_page()) {
    echo '&lt;p class=&quot;to_comments&quot;&gt;&lt;span class=&quot;bracket&quot;&gt;{&lt;/span&gt; &lt;a href=&quot;';
    the_permalink();
    echo '#comments&quot; rel=&quot;nofollow&quot;&gt;';
    comments_number(__('&lt;span&gt;0&lt;/span&gt; comments', 'thesis'), __('&lt;span&gt;1&lt;/span&gt; comment', 'thesis'), __('&lt;span&gt;%&lt;/span&gt; comments', 'thesis'));
    echo '&lt;/a&gt; &lt;span class=&quot;bracket&quot;&gt;}&lt;/span&gt;&lt;/p&gt;';
  }
}

remove_action('thesis_hook_after_post', 'thesis_comments_link');
add_action('thesis_hook_after_post', 'my_comments_link');
</pre>
<p>This example removes the brackets, and replaces &#8220;0 Comments&#8221; with &#8220;Be the first to comment&#8221;:</p>
<pre class="php">
function my_comments_link() {
  if (!is_single() &amp;&amp; !is_page()) {
    echo '&lt;p class=&quot;to_comments&quot;&gt;&lt;a href=&quot;';
    the_permalink();
    echo '#comments&quot; rel=&quot;nofollow&quot;&gt;';
    comments_number(__('Be the first to comment', 'thesis'), __('&lt;span&gt;1&lt;/span&gt; comment', 'thesis'), __('&lt;span&gt;%&lt;/span&gt; comments', 'thesis'));
    echo '&lt;/a&gt;&lt;/p&gt;';
  }
}

remove_action('thesis_hook_after_post', 'thesis_comments_link');
add_action('thesis_hook_after_post', 'my_comments_link');
</pre>
<h3 id="remove_brackets">Remove Brackets from Comments Link <a href="#remove_brackets" title="Link to this section">∞</a></h3>
<p>The <a href="/thesis/rtfm/default-hook-usage/">thesis_comments_link</a> filter can be used to do this; for example, with this code in <code>custom_functions.php</code>:</p>
<pre class="php">
// Changes the comment link to exclude brackets

function my_skin_comments_link($link) {
	return &quot;$link&quot;;
}

remove_filter('thesis_comments_link', 'default_skin_comments_link');
add_filter('thesis_comments_link', 'my_skin_comments_link');
</pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
