<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
>
	<channel>
		<title>Theme Hybrid Support &#187; Topic: Different Header for FrontPage</title>
		<link>http://themehybrid.com/support/topic/different-header-for-frontpage</link>
		<description>WordPress theme club support forums</description>
		<language>en-US</language>
		<pubDate>Fri, 12 Mar 2010 17:06:21 +0000</pubDate>
		<generator>bbpress 1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://themehybrid.com/support/search.php</link>
		</textInput>
		<atom:link href="http://themehybrid.com/support/rss/topic/different-header-for-frontpage" rel="self" type="application/rss+xml" />

		<item>
			<title>eddieb on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23184</link>
			<pubDate>Sun, 28 Jun 2009 16:33:42 +0000</pubDate>
			<dc:creator>eddieb</dc:creator>
			<guid isPermaLink="false">23184@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;yep that does it! thank you justin.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Justin Tadlock on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23183</link>
			<pubDate>Sun, 28 Jun 2009 16:09:24 +0000</pubDate>
			<dc:creator>Justin Tadlock</dc:creator>
			<guid isPermaLink="false">23183@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;You can use the &#60;code&#62;.front-page&#60;/code&#62; class to specify stuff only for that page and not use that class for other pages.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/* Non-front page stuff. */
#header-container { }
#header { }

/* Front page stuff. */
.front-page #header-container { }
.front-page #header { }&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>eddieb on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23181</link>
			<pubDate>Sun, 28 Jun 2009 15:37:09 +0000</pubDate>
			<dc:creator>eddieb</dc:creator>
			<guid isPermaLink="false">23181@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;sorry, i should have been more clear. &#60;/p&#62;
&#60;p&#62;#header-container gets a different bg img&#60;br /&#62;
#header has a diff height and gets no bg img&#60;/p&#62;
&#60;p&#62;should only take place if is_front_page() is not true, hence the question.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Justin Tadlock on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23173</link>
			<pubDate>Sun, 28 Jun 2009 02:19:21 +0000</pubDate>
			<dc:creator>Justin Tadlock</dc:creator>
			<guid isPermaLink="false">23173@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;If you want to change the CSS, just change it in your &#60;code&#62;style.css&#60;/code&#62; file.  Something like:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#header-container {
	overflow: hidden;
	width: 100%;
	background: url(images/new-background-image.png) repeat-x bottom left;
	}
#header {
	position:relative;
	overflow: hidden;
	width: 960px;
	height: 261px;
	margin: 0 auto;
	padding: 0 0;
	}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>eddieb on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23164</link>
			<pubDate>Sat, 27 Jun 2009 23:46:20 +0000</pubDate>
			<dc:creator>eddieb</dc:creator>
			<guid isPermaLink="false">23164@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;so i added the code above to hybrid_hook. all is fine.&#60;/p&#62;
&#60;p&#62;how do I swap the css?&#60;/p&#62;
&#60;p&#62;#header-container gets a different bg img&#60;br /&#62;
#header has a diff height and gets no bg img&#60;/p&#62;
&#60;p&#62;thanks&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#header-container {
	overflow: hidden;
	width: 100%;
	background: url(images/home_bar_bg.png) repeat-x bottom left;
	}
#header {
	position:relative;
	overflow: hidden;
	width: 960px;
	height: 261px;
	margin: 0 auto;
	padding: 0 0;
	background: url(images/home_banner.jpg) no-repeat bottom left;
	}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>eddieb on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23105</link>
			<pubDate>Fri, 26 Jun 2009 02:56:17 +0000</pubDate>
			<dc:creator>eddieb</dc:creator>
			<guid isPermaLink="false">23105@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;hmmm, i thought Hybrid Hook would be the more advanced one, since it allows for php code...&#60;br /&#62;
but i see what you mean by conditions in Hybrid Hook settings being incompatible with multiple code sets.&#60;/p&#62;
&#60;p&#62;i guess we still dont have the best of both worlds: multiple conditions possible + PHP allowed  + no need to use HTML entities (a big one if you language requires such chars)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Justin Tadlock on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23104</link>
			<pubDate>Fri, 26 Jun 2009 02:38:03 +0000</pubDate>
			<dc:creator>Justin Tadlock</dc:creator>
			<guid isPermaLink="false">23104@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;Condition boxes like Widget Logic wouldn't work well here.  The code inside the box would only be used if the condition is met.  That wouldn't allow for multiple code sets.&#60;/p&#62;
&#60;p&#62;Although Hybrid Hook is a cool plugin, it has been recoded as Hybrid Hook Widgets:&#60;br /&#62;
&#60;a href=&#34;http://themehybrid.com/themes/hybrid/hybrid-hook-widgets&#34; rel=&#34;nofollow&#34;&#62;http://themehybrid.com/themes/hybrid/hybrid-hook-widgets&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This offers much more flexibility and can be used along with a plugin like Widget Logic.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eddieb on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23103</link>
			<pubDate>Fri, 26 Jun 2009 02:22:37 +0000</pubDate>
			<dc:creator>eddieb</dc:creator>
			<guid isPermaLink="false">23103@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;suggestion: add a condition box to every hook available in the hybrid hooks plugin, a la &#34;widget logic&#34;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eddieb on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23102</link>
			<pubDate>Fri, 26 Jun 2009 02:20:44 +0000</pubDate>
			<dc:creator>eddieb</dc:creator>
			<guid isPermaLink="false">23102@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;all right, all is good and clear now.&#60;/p&#62;
&#60;p&#62;for future reference: if you use the plugin instead of functions.php method you do NOT need to use entities to represent unicode characters.&#60;/p&#62;
&#60;p&#62;thanks to everyone who contributed.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Justin Tadlock on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23096</link>
			<pubDate>Thu, 25 Jun 2009 23:21:33 +0000</pubDate>
			<dc:creator>Justin Tadlock</dc:creator>
			<guid isPermaLink="false">23096@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;Sorry, I think we've just made a simple process more confusing than it should be. ;)&#60;/p&#62;
&#60;p&#62;The first thing I should say is that Hybrid Hook wasn't really meant for PHP, even though PHP is allowed.  It was built for people to add in quick HTML snippets if needed.  It's better to work with PHP within the &#60;code&#62;functions.php&#60;/code&#62; file.&#60;/p&#62;
&#60;p&#62;Anyway, if you use the Hybrid Hook plugin, you don't need to write any functions or actually use the action hooks.  You just drop your PHP code in like so:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
	if ( is_front_page() ) :
		echo &#38;#39;&#38;lt;div&#38;gt;Hello world&#38;lt;/div&#38;gt;&#38;#39;;

		echo &#38;#39;&#38;lt;div&#38;gt;World, hello again.&#38;lt;/div&#38;gt;&#38;#39;;
	endif;
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you use your child theme's &#60;code&#62;functions.php&#60;/code&#62; file, you have to add an action (function) to an action hook like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

add_action( &#38;#39;hybrid_header&#38;#39;, &#38;#39;my_header&#38;#39; );

function my_header() {
	if ( is_front_page() ) :
		echo &#38;#39;&#38;lt;div&#38;gt;Hello world&#38;lt;/div&#38;gt;&#38;#39;;

		echo &#38;#39;&#38;lt;div&#38;gt;World, hello again.&#38;lt;/div&#38;gt;&#38;#39;;
	endif;
}

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The Hybrid Hook plugin just takes away from the &#60;code&#62;add_action()&#60;/code&#62; and wrapping PHP in a function.&#60;/p&#62;
&#60;p&#62;Also, here's a character entity reference if you're having trouble with them:&#60;br /&#62;
&#60;a href=&#34;http://www.copysense.co.uk/entities.php&#34; rel=&#34;nofollow&#34;&#62;http://www.copysense.co.uk/entities.php&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eddieb on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23095</link>
			<pubDate>Thu, 25 Jun 2009 22:40:07 +0000</pubDate>
			<dc:creator>eddieb</dc:creator>
			<guid isPermaLink="false">23095@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;i did use (&#38;lt;?php and ?&#38;gt;) tags around the code in HOOK&#38;gt;HEADER. it didnt work even w/o conditional tags. is this supposed to work from within the plugin?&#60;/p&#62;
&#60;p&#62;or do i need to place it in functions.php? the inconvenience is that inside functions.php unicode chars like &#34;á&#34; get displayed as a &#34;?&#34; inside a diamond shape.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_action( &#38;#39;hybrid_header&#38;#39;, &#38;#39;my_header&#38;#39; );

function my_header() {
		echo &#38;#39;content&#38;#39;;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>John Myrstad on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23089</link>
			<pubDate>Thu, 25 Jun 2009 22:08:41 +0000</pubDate>
			<dc:creator>John Myrstad</dc:creator>
			<guid isPermaLink="false">23089@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;As I said, I have not done this, but know its a possible solution using php syntax as Justin points out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Justin Tadlock on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23084</link>
			<pubDate>Thu, 25 Jun 2009 21:20:54 +0000</pubDate>
			<dc:creator>Justin Tadlock</dc:creator>
			<guid isPermaLink="false">23084@http://themehybrid.com/support/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
i checked the allow PHP box in hybrid hook 0.1 but it didnt process the php - everything got displayed on screen
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Did you add PHP (&#60;code&#62;&#38;lt;?php&#60;/code&#62; and &#60;code&#62;?&#38;gt;&#60;/code&#62;) tags around your code?  If using the plugin, you'd need to do that.&#60;/p&#62;
&#60;p&#62;I read too quickly through his post and didn't notice he was referring to the plugin.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eddieb on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23079</link>
			<pubDate>Thu, 25 Jun 2009 19:28:27 +0000</pubDate>
			<dc:creator>eddieb</dc:creator>
			<guid isPermaLink="false">23079@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;i tried to follow john's way. i checked the allow PHP box in hybrid hook 0.1 but it didnt process the php - everything got displayed on screen. using hybrid .6, wp 2.8 &#38;#38; a mod of leviathan.&#60;/p&#62;
&#60;p&#62;so i put the code in functions.php and it worked as intended. great, but why was the hybrid hook plugin even mentioned as a part of the solution in this case? John, did you mean to say CRAIGs solution would be the one?&#60;/p&#62;
&#60;p&#62;thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Justin Tadlock on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23073</link>
			<pubDate>Thu, 25 Jun 2009 16:05:44 +0000</pubDate>
			<dc:creator>Justin Tadlock</dc:creator>
			<guid isPermaLink="false">23073@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;It still depends entirely on what you're doing, but the best way would probably be John's advice.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action( &#38;#39;hybrid_header&#38;#39;, &#38;#39;my_header&#38;#39; );

function my_header() {
	if ( is_front_page() ) :
		echo &#38;#39;&#38;lt;div&#38;gt;Hello world&#38;lt;/div&#38;gt;&#38;#39;;

		echo &#38;#39;&#38;lt;div&#38;gt;World, hello again.&#38;lt;/div&#38;gt;&#38;#39;;
	endif;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Craig on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23067</link>
			<pubDate>Thu, 25 Jun 2009 14:04:03 +0000</pubDate>
			<dc:creator>Craig</dc:creator>
			<guid isPermaLink="false">23067@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;If it is a different header image and styling then you can try this in functions.php and change the image names or conditions.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

add_action(&#38;#39;wp_head&#38;#39;, &#38;#39;my_custom_header&#38;#39;);

function my_custom_header() {

	$style = &#38;#39;&#38;lt;style type=&#38;quot;text/css&#38;quot;&#38;gt;&#38;#39;;

	if(is_home()) :
		$style .= &#38;#39;#site-title a { background: url(/wp-content/themes/leviathan/images/header.png) no-repeat 0 0; 	display: block; width: 960px; height: 242px; margin: 0 0 0 0;}&#38;#39;;

	elseif(is_page(&#38;#39;About&#38;#39;)) :
		$style .= &#38;#39;#site-title a { background: #d9dcc5 url(/wp-content/themes/leviathan/images/header2.png) no-repeat 0 0; display: block; width: 960px; height: 242px; margin: 0 0 0 0; }&#38;#39;;

	elseif(is_page(&#38;#39;Manhattan&#38;#39;)) :
		$style .= &#38;#39;#site-title a { background: url(/wp-content/themes/leviathan/images/header3.png) no-repeat 0 0; display: block; width: 960px; height: 242px; margin: 0 0 0 0; }&#38;#39;;

	elseif(is_category(&#38;#39;9&#38;#39;)) :
		$style .= &#38;#39;#site-title a { background: url(/wp-content/themes/leviathan/images/header4.png) no-repeat 0 0; display: block; width: 960px; height: 242px; margin: 0 0 0 0;}&#38;#39;;

	else :
		$style .= &#38;#39;#site-title a { background: url(/wp-content/themes/leviathan/images/header5.png) no-repeat 0 0; display: block; width: 960px; height: 242px; margin: 0 0 0 0; }&#38;#39;;

	endif;

	$style .= &#38;#39;&#38;lt;/style&#38;gt;&#38;#39;;

	echo $style;
}

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>John Myrstad on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23066</link>
			<pubDate>Thu, 25 Jun 2009 13:37:46 +0000</pubDate>
			<dc:creator>John Myrstad</dc:creator>
			<guid isPermaLink="false">23066@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;F. Use a hook and Hybrid Hook plugin using a conditional statement ( if possible )&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;hybrid_header&#60;br /&#62;
    Makes up the content of div#header&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;&#60;a href=&#34;http://themehybrid.com/themes/hybrid/hybrid-hook&#34; rel=&#34;nofollow&#34;&#62;http://themehybrid.com/themes/hybrid/hybrid-hook&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I have never tried though...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eddieb on "Different Header for FrontPage"</title>
			<link>http://themehybrid.com/support/topic/different-header-for-frontpage#post-23065</link>
			<pubDate>Thu, 25 Jun 2009 13:16:04 +0000</pubDate>
			<dc:creator>eddieb</dc:creator>
			<guid isPermaLink="false">23065@http://themehybrid.com/support/</guid>
			<description>&#60;p&#62;i would like to insert a couple extra divs inside hybrid_header() only on the frontpage.&#60;/p&#62;
&#60;p&#62;whats the recommended way to do this?&#60;/p&#62;
&#60;p&#62;A) make the custom page template (frontpage.php) call a different header.php ?&#60;br /&#62;
B) I include a conditional statement ( is_front_page() ) inside header.php so that it calls a different/custom hybrid_header() ?&#60;br /&#62;
C) hand code the extra stuff in frontpage.php, but isnt this a bit sloppy ?&#60;br /&#62;
D) is it possible to create an alternate hybrid_header(), that only gets sent to the browser when is_front_page(), inside functions.php ?&#60;br /&#62;
E) ???&#60;/p&#62;
&#60;p&#62;there are so many different ways to go about it. covering all the pros and cons of each method is quite a task.&#60;/p&#62;
&#60;p&#62;what would YOU do?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
