<?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 remove/change title on single page for custom post type &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/how-to-removechange-title-on-single-page-for-custom-post-type/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/how-to-removechange-title-on-single-page-for-custom-post-type/feed/</link>
		<description></description>
		<lastBuildDate>Sat, 11 Oct 2025 17:46:55 +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-removechange-title-on-single-page-for-custom-post-type/#post-184422</guid>
					<title><![CDATA[How to remove/change title on single page for custom post type]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-removechange-title-on-single-page-for-custom-post-type/#post-184422</link>
					<pubDate>Fri, 16 Jan 2015 14:09:20 +0000</pubDate>
					<dc:creator>oikosdigital</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>I&#8217;m using a child theme (based on x-child-renew) and I have a custom post type that I want to style single pages for.</p>
<p>I&#8217;ve created a single-my_post_type.php in the child theme and I&#8217;ve put</p>
<p><code>&lt;?php get_header(); ?&gt;</code></p>
<p>at the top (as well as some other stuff that I copied from framework/views/renew/wp-single.php)</p>
<p>This always adds a <code>&lt;header class=&quot;x-header-landmark&quot;&gt;</code> when is_single() is true and it adds this as the <code>&lt;h1&gt;</code>:</p>
<pre><code>&lt;h1 class=&quot;h-landmark&quot;&gt;&lt;span&gt;&lt;?php echo x_get_option( &#039;x_renew_blog_title&#039; ); ?&gt;&lt;/span&gt;&lt;/h1&gt;
</code></pre>
<p>This code is added by framework/views/renew/_landmark_header.php</p>
<p>What&#8217;s the recommended way to remove the landmark header elements from my single-my_post_type.php template?  The only way I can see is to swap:</p>
<p><code>&lt;?php get_header(); ?&gt;</code></p>
<p>for code copied from framework/views/renew/wp-header.php:</p>
<pre><code>&lt;header class=&quot;&lt;?php x_masthead_class(); ?&gt;&quot; role=&quot;banner&quot;&gt;
    &lt;?php x_get_view( &#039;global&#039;, &#039;_topbar&#039; ); ?&gt;
    &lt;?php x_get_view( &#039;global&#039;, &#039;_navbar&#039; ); ?&gt;
&lt;/header&gt;</code></pre>
<p>Is this the right approach? Or is there something I can call or a filter I can add?</p>
<p>Thanks</p>
<p>Ross</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-removechange-title-on-single-page-for-custom-post-type/#post-184967</guid>
					<title><![CDATA[Reply To: How to remove/change title on single page for custom post type]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-removechange-title-on-single-page-for-custom-post-type/#post-184967</link>
					<pubDate>Sat, 17 Jan 2015 10:38:27 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>Hey Ross,</p>
<p>That is fine. The header landmark code is outputted because of the code in <strong>views/renew/_landmark_header.php</strong></p>
<pre><code>          &lt;?php elseif ( is_home() || is_single() ) : ?&gt;
            &lt;?php if ( x_is_portfolio_item() ) : ?&gt;

              &lt;h1 class=&quot;h-landmark&quot;&gt;&lt;span&gt;&lt;?php echo x_get_parent_portfolio_title(); ?&gt;&lt;/span&gt;&lt;/h1&gt;

            &lt;?php else : ?&gt;

              &lt;h1 class=&quot;h-landmark&quot;&gt;&lt;span&gt;&lt;?php echo x_get_option( &#039;x_renew_blog_title&#039; ); ?&gt;&lt;/span&gt;&lt;/h1&gt;

            &lt;?php endif; ?&gt;</code></pre>
<p>You can modify the condition that checks if it is home or any single post (any post type) there like </p>
<p><code>&lt;?php elseif ( is_home() || is_single() &amp;&amp; !is_singular(&#039;your-custom-post-type&#039;) ) : ?&gt;</code></p>
<p>to make it not display the header landmark on your custom post type. See the links below for more info on is_single and is_singular conditional tags</p>
<p><a href="http://codex.wordpress.org/Function_Reference/is_single" rel="nofollow">http://codex.wordpress.org/Function_Reference/is_single</a><br />
<a href="http://codex.wordpress.org/Function_Reference/is_singular" rel="nofollow">http://codex.wordpress.org/Function_Reference/is_singular</a></p>
<p>Hope that helps. 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-removechange-title-on-single-page-for-custom-post-type/#post-185178</guid>
					<title><![CDATA[Reply To: How to remove/change title on single page for custom post type]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-removechange-title-on-single-page-for-custom-post-type/#post-185178</link>
					<pubDate>Sat, 17 Jan 2015 20:10:29 +0000</pubDate>
					<dc:creator>oikosdigital</dc:creator>

					<description>
						<![CDATA[
						<p>That&#8217;s fine. I&#8217;m happy with what I&#8217;ve got. Can I just feedback that it would be great to have a filterable title. So, for example, the code in _landmark_header.php could be:</p>
<pre><code>&lt;?php elseif ( is_home() || is_single() ) : ?&gt;
            &lt;?php if ( x_is_portfolio_item() ) : ?&gt;

              &lt;h1 class=&quot;h-landmark&quot;&gt;&lt;span&gt;&lt;?php echo apply_filters(&#039;x_landmark_header_title&#039;, x_get_parent_portfolio_title()); ?&gt;&lt;/span&gt;&lt;/h1&gt;

            &lt;?php else : ?&gt;

              &lt;h1 class=&quot;h-landmark&quot;&gt;&lt;span&gt;&lt;?php echo apply_filters(&#039;x_landmark_header_title&#039;, x_get_option( &#039;x_renew_blog_title&#039; )); ?&gt;&lt;/span&gt;&lt;/h1&gt;

            &lt;?php endif; ?&gt;
</code></pre>
<p>Then I could do:</p>
<pre><code>add_filter(&#039;x_landmark_header_title&#039;, &#039;custom_post_title&#039;);
function custom_post_title($title) {
  if (is_singular(&#039;my-custom-post-type&#039;)) {
    return &#039;My Title&#039;;
  } else {
    return $title;
  }
}
</code></pre>
<p>That would be sweet.  Just sayin&#8217;</p>
<p>Thanks</p>
<p>Ross</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-removechange-title-on-single-page-for-custom-post-type/#post-185758</guid>
					<title><![CDATA[Reply To: How to remove/change title on single page for custom post type]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-removechange-title-on-single-page-for-custom-post-type/#post-185758</link>
					<pubDate>Mon, 19 Jan 2015 01:23:54 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Ross,</p>
<p>Sure, added your requests. It&#8217;s nice to have filters that can be use anytime.</p>
<p>Thanks for sharing 😉</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-removechange-title-on-single-page-for-custom-post-type/#post-771887</guid>
					<title><![CDATA[Reply To: How to remove/change title on single page for custom post type]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-removechange-title-on-single-page-for-custom-post-type/#post-771887</link>
					<pubDate>Sat, 30 Jan 2016 13:13:44 +0000</pubDate>
					<dc:creator>bjoern_s</dc:creator>

					<description>
						<![CDATA[
						<p>Hi</p>
<p>One year has passed by, but the suggestion of Ross wasn&#8217;t implemented yet. Would be great, if this gets into the next release of X.</p>
<p>Kind regards<br />
Björn</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-removechange-title-on-single-page-for-custom-post-type/#post-772476</guid>
					<title><![CDATA[Reply To: How to remove/change title on single page for custom post type]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-removechange-title-on-single-page-for-custom-post-type/#post-772476</link>
					<pubDate>Sun, 31 Jan 2016 01:40:39 +0000</pubDate>
					<dc:creator>Rue Nel</dc:creator>

					<description>
						<![CDATA[
						<p>Hello Björn,</p>
<p>We certainly appreciate the feedback! This is something we can add to our list of feature requests. This way it can be taken into consideration for future development. All of these items are discussed with our team internally and prioritized based on the amount of interest a particular feature might receive. </p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

