<?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"

			>

	<channel>

		<title>How to truncate post titles automatically? &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/feed/</link>
		<description></description>
		<lastBuildDate>Sat, 18 Oct 2025 11:00:58 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/#post-287813</guid>
					<title><![CDATA[How to truncate post titles automatically?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/#post-287813</link>
					<pubDate>Sun, 31 May 2015 19:29:00 +0000</pubDate>
					<dc:creator>Tsavo</dc:creator>

					<description>
						<![CDATA[
						<p>Hey guys,</p>
<p>How can I configure WordPress/X Theme to truncate post titles automatically if they are over 25 words? I want to have some sort of (&#8230;More) link pop up to the post when post titles are over 25 words.</p>
<p>Thanks!  </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/#post-288163</guid>
					<title><![CDATA[Reply To: How to truncate post titles automatically?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/#post-288163</link>
					<pubDate>Mon, 01 Jun 2015 04:33:18 +0000</pubDate>
					<dc:creator>Rue Nel</dc:creator>

					<description>
						<![CDATA[
						<p>Hello There,</p>
<p>Thanks for posting in! </p>
<p>To truncate post titles automatically, please add the following css code in the customizer, <strong>Appearance &gt; Customize &gt; Custom &gt; CSS</strong> or insert this code in your child theme&#8217;s style.css (if you are <a href="https://theme.co/x/member/kb/how-to-setup-child-themes/" target="_blank" rel="nofollow">using a child theme</a>)</p>
<pre><code>.hentry .entry-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}</code></pre>
<p>Using css will not allow you to determine if it is already over 25 characters. The css will only check if the characters is beyond the borders of the container element. You will need a js script if you want the title to adjust to a precise number of words. Please try <a href="https://www.google.com/search?q=truncate%20text%20js&amp;rct=j" rel="nofollow">looking for a plugin</a> that may help you.</p>
<p>If you want to adjust the except length of your excerpt, you can set it in the customizer, <strong>Appearance &gt; Customize &gt; Blog &gt; Content &gt; Excerpt Length</strong></p>
<p>Hope this helps. Kindly let us know.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/#post-289313</guid>
					<title><![CDATA[Reply To: How to truncate post titles automatically?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/#post-289313</link>
					<pubDate>Tue, 02 Jun 2015 02:59:11 +0000</pubDate>
					<dc:creator>Tsavo</dc:creator>

					<description>
						<![CDATA[
						<p>By &#8220;plugin&#8221; do you mean custom CSS in JavaScript section? Or an actual WordPress plugin?</p>
<p>Does the &#8220;excerpt length&#8221; section in the customizer apply to both the post content and title? It doesn&#8217;t seem to change anything when I input a number.</p>
<p>Thanks! </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/#post-290047</guid>
					<title><![CDATA[Reply To: How to truncate post titles automatically?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/#post-290047</link>
					<pubDate>Tue, 02 Jun 2015 18:07:39 +0000</pubDate>
					<dc:creator>Nico</dc:creator>

					<description>
						<![CDATA[
						<p>Hi There,</p>
<p>In regards to the excerpt length, Would you mind sharing us your admin credentials so we could check your current setup.</p>
<p>Don&#8217;t forget to set it as private reply.</p>
<p>Thank you so much.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/#post-290245</guid>
					<title><![CDATA[Reply To: How to truncate post titles automatically?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/#post-290245</link>
					<pubDate>Tue, 02 Jun 2015 20:43:30 +0000</pubDate>
					<dc:creator>Tsavo</dc:creator>

					<description>
						<![CDATA[
						This reply has been marked as private.						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/#post-290904</guid>
					<title><![CDATA[Reply To: How to truncate post titles automatically?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/#post-290904</link>
					<pubDate>Wed, 03 Jun 2015 12:41:41 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>#1 Please remove following code from Customize -&gt; custom -&gt; JavaScript :</p>
<pre><code>.wpcf7 input[type=&quot;text&quot;],
.wpcf7 input[type=&quot;email&quot;],
.wpcf7 textarea
{
      border: 1px solid #d3d3d3;
border-radius: 3px;
      padding: 0px 0;
}</code></pre>
<p>And put it in CSS section.</p>
<p>#2 I searched for provide post title and the result didn&#8217;t show that specific post.<br />
<code>http://loglineit.com/wp-admin/edit.php?s=loglines&amp;post_status=all&amp;post_type=post&amp;action=-1&amp;m=0&amp;cat=0&amp;seo_filter&amp;paged=1&amp;mode=list&amp;action2=-1</code></p>
<p>But upon checking some posts I see you added only a few words like two words in posts, so increase your content on these posts and test again.</p>
<p>Hope it helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/#post-291234</guid>
					<title><![CDATA[Reply To: How to truncate post titles automatically?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/#post-291234</link>
					<pubDate>Wed, 03 Jun 2015 17:33:47 +0000</pubDate>
					<dc:creator>Tsavo</dc:creator>

					<description>
						<![CDATA[
						<p>Sorry, I don&#8217;t know if I was being clear enough.</p>
<p>Each post on my site will have little to no words in the post content, as the post titles themselves ARE the content.  So what is contained inside the post does not need to be truncated, but rather the post title only.  </p>
<p>I tried out the excerpt length and it does indeed work correctly, albeit for the post content and not the title.  I just want to figure out a way to truncate only the post titles if they are &gt; 25 words. </p>
<p>Is this possible with a WordPress plugin? JS script in the customizer? Or perhaps some custom CSS?</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/#post-291804</guid>
					<title><![CDATA[Reply To: How to truncate post titles automatically?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-truncate-post-titles-automatically/#post-291804</link>
					<pubDate>Wed, 03 Jun 2015 23:43:29 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thanks for writing in.</p>
<p>Excerpt length is only applicable for excerpts. Perhaps, you can try this out.</p>
<p>Add this code at your child theme&#8217;s functions.php</p>
<pre><code>function limited_title ( $post_title ) {
   $post_title = explode(&#039; &#039;, $post_title , 25 );
   if ( count( $post_title )&gt;= 25 ) {
      array_pop( $post_title );
      $post_title = implode( &quot; &quot; , $post_title).&#039;.&#039;;
   } else {
      $post_title = implode( &quot; &quot; , $post_title );
   } 
   $post_title = preg_replace(&#039;&lt;code&gt;\[[^\]]*\]&lt;/code&gt;&#039;,&#039;&#039;, $post_title );
   return $post_title;
}

add_filter( &#039;the_title&#039;, &#039;limited_title&#039;, 9999 );</code></pre>
<p>Hope this helps.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

