<?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>Header Images &#8211; Blackbams Blog</title>
	<atom:link href="https://blog.blackbam.at/tag/header-images/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.blackbam.at</link>
	<description>development - digital arts - internet</description>
	<lastBuildDate>Fri, 21 Feb 2020 10:20:40 +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>Custom Header Images Plugin for WordPress</title>
		<link>https://blog.blackbam.at/2012/06/25/custom-header-images-plugin-for-wordpress/</link>
					<comments>https://blog.blackbam.at/2012/06/25/custom-header-images-plugin-for-wordpress/#comments</comments>
		
		<dc:creator><![CDATA[Blackbam]]></dc:creator>
		<pubDate>Sun, 24 Jun 2012 23:08:37 +0000</pubDate>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Header Images]]></category>
		<guid isPermaLink="false">https://blog.blackbam.at/?p=1935</guid>

					<description><![CDATA[Update: There was a short intverview regarding this Plugin by expertentesten.de: https://www.expertentesten.de/news/interview-david-stoeckl-custom-header-images-plugin/(language is german). Why does WordPress need another Header Images Plugin? Really, there are a lot of Plugins for this purpose so why did I have to write another one? The answer is: All these plugins have a lot of code, it is hard [&#8230;]]]></description>
										<content:encoded><![CDATA[<div style="float: right; padding: 15px;">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input name="cmd" type="hidden" value="_s-xclick" /> <input name="hosted_button_id" type="hidden" value="DX9GDC5T9J9AQ" /> <input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" type="image" /> <img decoding="async" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" alt="" width="1" height="1" border="0" /></form>
</div>
<p>Update: There was a short intverview regarding this Plugin by expertentesten.de: <a href="https://www.expertentesten.de/news/interview-david-stoeckl-custom-header-images-plugin/">https://www.expertentesten.de/news/interview-david-stoeckl-custom-header-images-plugin/</a>(language is german).</p>
<p>Why does WordPress need another Header Images Plugin? Really, there are a lot of Plugins for this purpose so why did I have to write another one? The answer is: All these plugins have<strong> a lot of code</strong>, it is <strong>hard to extend these by oneself</strong> and unfortunatly <strong>none if these is really simple to maintain, extend and to understand</strong>. I was searching for hours for the right header image Plugin which provides the functionality that i needed in a simple clean and easy way, without custom tables and buggy built-in uploads, wihout required theme support and so on. So here is my answer: A quick and easy WordPress Plugin to do this job.</p>
<h2>Features</h2>
<ul>
<li>Simple and easy management of header images</li>
<li>Each possible state is covered, by using the <a href="http://upload.wikimedia.org/wikipedia/commons/3/3d/Wordpress_Template_Hierarchy.png">WordPress template hierarchy</a>for diffentiation</li>
<li>The Media Library is used for image management, images are saved by URL copy/paste (so external images can be used, too)</li>
<li>Requires no extra tables</li>
<li>NEW: Support for Custom Post Types (Single Custom Post Images) and Custom Taxonomies (Taxonomy Page Images)</li>
<li>Clean install/uninstall</li>
</ul>
<div> </div>
<div>Be free to post improvement ideas and feature request as a comment to this post.</div>
<h2>Installation</h2>
<p>&gt;&gt; <a style="font-size: 16px; font-weight: bold;" href="http://wordpress.org/extend/plugins/custom-header-images/">Download this Plugin</a> &lt;&lt;</p>
<ol>
<li>Upload the Plugin to your wp-content/plugins/ folder</li>
<li>Activate the Plugin</li>
<li>Go to Settings -&gt; Header Images and insert the image URLs (get the URLs from the media library)</li>
<li>Paste one of the following codes into your theme:</li>
</ol>
<p><strong>NOTE:</strong>This code must be put into PHP brackets!</p>
<p><!--?php ....code.... ?--></p>
<pre lang="php">// standard code
if(function_exists('chi_display_header')) { chi_display_header(); }</pre>
<p>or this code, use concrete numbers for width and height in pixels:</p>
<pre lang="php">// f.e. chi_display_header(960,250); for header images with 960 px width and 250 px height
if(function_exists('chi_display_header')) { chi_display_header($width,$height); }</pre>
<p>Warning: You can only use conditional query tags after the posts_selection action hook in WordPress (the wp action hook is the first one through which you can use these conditionals). For themes, this means the conditional tag will never work properly if you are using it in the body of functions.php, i.e. outside of a function (<a href="http://codex.wordpress.org/Conditional_Tags">http://codex.wordpress.org/Conditional_Tags</a>).</p>
<p>&nbsp;</p>
<p>============ UPDATE: 2014-02-01 ==========</p>
<p>Some functions were added for better flexibility:</p>
<pre lang="php">chi_get_header_image_url(); // get only the URL of the header image

</pre>
<p>&nbsp;</p>
<pre lang="php">chi_get_header_image_link(); // get only the Link of the header image

</pre>
<p>&nbsp;</p>
<pre lang="php">chi_get_display_header_data($width=-1,$height=-1); // get the full output of the plugin into a variable, but do not display it

</pre>
<p>&nbsp;</p>
<h3>Responsiveness tutorial (short)</h3>
<p>For the sake of responsive web design, you will not be happy to put out the same header image on every device (as huge header images are not good for mobile devices to load). Therefore I suggest the following solution which should work well for you:</p>
<p>&nbsp;</p>
<ol>
<li>Instead of calling  chi_display_header(); you call chi_get_header_image_url(); and pass it to a Javascript variablet</li>
<li>Install the <a href="https://code.google.com/p/timthumb/">timthumb library</a> on your WordPress installation</li>
<li>Use Javascript to get the image in the desired size from timthumb.php by passing the original image url</li>
</ol>
<p>&nbsp;</p>
<h2>How to change header images&#8230;</h2>
<ul>
<li>Go to Settings -&gt;Header images (general images)</li>
<li>Meta Boxes at the bottom of post / page edit screen</li>
<li>Category add/edit screen</li>
</ul>
<h2>FAQ</h2>
<p><strong>Q: The Plugin is not displaying the header images correctly. What is wrong?</strong></p>
<ul>
<li>The function code must be pasted into one of your template files, the<strong> best place in most cases of use is the bottom of header.php</strong></li>
<li>This Plugin uses <strong>conditional tags</strong>. Please make sure that your wp_query object has been loaded correctly, before the code is executed.</li>
</ul>
<p><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fblog.blackbam.at%2F2012%2F06%2F25%2Fcustom-header-images-plugin-for-wordpress%2F&#038;title=Custom%20Header%20Images%20Plugin%20for%20WordPress" data-a2a-url="https://blog.blackbam.at/2012/06/25/custom-header-images-plugin-for-wordpress/" data-a2a-title="Custom Header Images Plugin for WordPress"><img src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded>
					
					<wfw:commentRss>https://blog.blackbam.at/2012/06/25/custom-header-images-plugin-for-wordpress/feed/</wfw:commentRss>
			<slash:comments>93</slash:comments>
		
		
			</item>
	</channel>
</rss>
