<?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 replace wordpress title header with an image &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/how-to-replace-wordpress-title-header-with-an-image/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/how-to-replace-wordpress-title-header-with-an-image/feed/</link>
		<description></description>
		<lastBuildDate>Sat, 11 Oct 2025 09:13:25 +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-replace-wordpress-title-header-with-an-image/#post-114218</guid>
					<title><![CDATA[How to replace wordpress title header with an image]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-replace-wordpress-title-header-with-an-image/#post-114218</link>
					<pubDate>Sun, 28 Sep 2014 17:32:12 +0000</pubDate>
					<dc:creator>ragnartorfi</dc:creator>

					<description>
						<![CDATA[
						<p>Dear sir/madam,<br />
I have just entered the world of theme X and am loving it.<br />
I have looked around in the knowledge base but have not (yet) found exactly what I am looking for.<br />
Here is the current site (the english version, you&#8217;re looking at a particular category called &#8220;Calendar&#8221;)<br />
<a href="http://annit.is/en/calendar/" rel="nofollow">http://annit.is/en/calendar/</a></p>
<p>As you can see, I have already added stuff to the custom CSS to hide some category archive content text:</p>
<pre><code>.category .x-header-landmark {
display: none;
}
</code></pre>
<p>Also, I have added the following stuff to the custom CSS to try to get an image up in the header section:</p>
<pre><code>.x-header-landmark {
margin: 0px auto 0;
height: 100%;
background-color: #0D0D0D;
background-image: url(&#039;http://annit.is/images/bordi/10.jpg&#039;); 
}</code></pre>
<p>To see an example of what exactly this custom CSS stuff does, you can click here:<br />
<a href="http://annit.is/en/?s=fulbright&#038;lang=en" rel="nofollow">http://annit.is/en/?s=fulbright&#038;lang=en</a><br />
The image projects nicely but not in the correct place</p>
<p>I would like the image to appear above, more specifically in the header region where the &#8220;ANNIT.IS&#8221; title is and the menu navigation (+ search) links are located. The &#8220;ANNIT.IS&#8221; title I would like to remove altogether, the navigation menu links should be in the same spot (I will make them red or something so they won&#8217;t disappear on top of the image). Furthermore, if possible, I would actually like it if the image could be randomly chosen from a directory.</p>
<p>I would be most grateful if you could give me some pointers as it seems I have not figured out how to search properly for a solution, I&#8217;m still guessing that I need to go for some kind of child theme :o)</p>
<p>Many thanks,<br />
Ragnar</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-replace-wordpress-title-header-with-an-image/#post-114351</guid>
					<title><![CDATA[Reply To: How to replace wordpress title header with an image]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-replace-wordpress-title-header-with-an-image/#post-114351</link>
					<pubDate>Mon, 29 Sep 2014 01:47:05 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thanks for posting in.</p>
<p>Not sure if I understand it correctly, please correct me. You&#8217;re trying to move the background image to your navigation bar? </p>
<p>In that case, you don&#8217;t need this css</p>
<pre><code>.x-header-landmark {
margin: 0px auto 0;
height: 100%;
background-color: #0D0D0D;
background-image: url(&#039;http://annit.is/images/bordi/10.jpg&#039;); 
}</code></pre>
<p>What you need is this</p>
<pre><code>.x-navbar {
background-color: #0D0D0D;
background-image: url(&#039;http://annit.is/images/bordi/10.jpg&#039;); 
}</code></pre>
<p>Then hide ANNIT.IS with this.</p>
<pre><code>.x-brand {
display: none;
}</code></pre>
<p>Random image is not possible with css, but could be with javascript. But, I&#8217;d like to confirm first if we&#8217;re on the right direction.</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-replace-wordpress-title-header-with-an-image/#post-114521</guid>
					<title><![CDATA[Reply To: How to replace wordpress title header with an image]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-replace-wordpress-title-header-with-an-image/#post-114521</link>
					<pubDate>Mon, 29 Sep 2014 08:23:05 +0000</pubDate>
					<dc:creator>ragnartorfi</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there, first of all, many thanks for your quick and excellent response.<br />
This seems to work fine, example:<br />
<a href="http://www.annit.is/en/calendar" rel="nofollow">http://www.annit.is/en/calendar</a><br />
The &#8220;ANNIT.IS&#8221; text is still there despite the .x-brand being in place in the custom css<br />
Thoughts? 🙂</p>
<p>Regarding the random, I have an idea which I have to look at, I&#8217;ll write more here when I have more info<br />
Best,<br />
Ragnar</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-replace-wordpress-title-header-with-an-image/#post-114553</guid>
					<title><![CDATA[Reply To: How to replace wordpress title header with an image]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-replace-wordpress-title-header-with-an-image/#post-114553</link>
					<pubDate>Mon, 29 Sep 2014 09:26:13 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>Hey there,</p>
<p>Please try the CSS</p>
<pre><code>.x-navbar .x-brand {
display: none;
}</code></pre>
<p>Please see <a href="http://prntscr.com/4re45i" rel="nofollow">http://prntscr.com/4re45i</a>. As you see in the screenshot, using &#8220;.x-brand&#8221; alone won&#8217;t work because of the selector &#8220;.x-navbar .x-brand&#8221;. The more targeted a selector is, it has more weight in CSS.</p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-replace-wordpress-title-header-with-an-image/#post-114588</guid>
					<title><![CDATA[Reply To: How to replace wordpress title header with an image]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-replace-wordpress-title-header-with-an-image/#post-114588</link>
					<pubDate>Mon, 29 Sep 2014 10:53:37 +0000</pubDate>
					<dc:creator>ragnartorfi</dc:creator>

					<description>
						<![CDATA[
						<p>Excellent &#8211; Many thanks.<br />
Just one final note, regarding having the image in the navbar chosen randomly from a predefined set of images in a specific folder.<br />
Previously, using a completely different theme, the following would be put in place in a &#8220;header&#8221; file:</p>
<pre><code>&lt;a href=&quot;http://annit.is&quot;&gt;
&lt;img src=&quot;http://annit.is/images/bordi/&lt;?php echo(rand(1,61)); ?&gt;.jpg&quot; width=&quot;100%&quot; alt=&quot;&quot; /&gt;
&lt;/a&gt;</code></pre>
<p>This would choose one (of 61 possible jpgs stored in the folder) image and put that as the header image.<br />
Is there any quick work around to make this happen?</p>
<p>Again, very happy for any advice you may have but I understand you may not be able to solve everything for me :o)<br />
Best,<br />
Ragnar</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-replace-wordpress-title-header-with-an-image/#post-114638</guid>
					<title><![CDATA[Reply To: How to replace wordpress title header with an image]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-replace-wordpress-title-header-with-an-image/#post-114638</link>
					<pubDate>Mon, 29 Sep 2014 11:52:19 +0000</pubDate>
					<dc:creator>Zeshan</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Ragner,</p>
<p>Thank you for writing in!</p>
<p>Because this requires a template change, I&#8217;d advise that you setup a <a href="http://theme.co/x/member/kb/how-to-setup-child-themes/" title="Child Themes" target="_blank" rel="nofollow">child theme</a>. This allows you to make code changes that won&#8217;t be overwritten when an <strong>X</strong> update is released. After your child theme is setup, please review how we recommend making template changes in <a href="http://theme.co/x/member/kb/customization-best-practices/" rel="nofollow">Customization Best Practices</a>.</p>
<p>After that, copy the file <strong>wp-content/themes/x/framework/views/global/_brand.php</strong> in your child theme&#8217;s folder <strong>/framework/views/global/</strong>, open the copied file in a text editor and replace the following line of code (probably line no. 19):</p>
<pre><code>&lt;?php echo ( $logo == &#039;&#039; ) ? $site_name : $site_logo; ?&gt;
</code></pre>
<p>With:</p>
<pre><code>&lt;img src=&quot;http://annit.is/images/bordi/&lt;?php echo(rand(1,61)); ?&gt;.jpg&quot; alt=&quot;&lt;?php echo $site_description; ?&gt;&quot;&gt;
</code></pre>
<p>Hope this helps. 🙂</p>
<p>Thank you.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

