netflex
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Unique header image for each pageIt worked – very much appreciated!
Thanks dudeForum: Themes and Templates
In reply to: Unique header image for each pageWhen i insert the code you provided I am getting a parse errer:
Parse error: syntax error, unexpected ‘{‘ in /home/roundtab/public_html/wp-content/themes/roundtable/header.php on line 96
which is referring to this line:
if ( is_page(‘about-us’) { ?>I essentialy replaced the following code with the code you provided:
——————————
<?php $t_custom_background = get_option( “nattywp_custom_header” );
if ($t_custom_background != ”) { ?>
<img src=”<?php echo $t_custom_background; ?>” alt=”Header image” border=”0″ />
<?php } elseif (!isset($t_main_img) || $t_main_img == ‘no’ || $t_main_img == ‘header2.jpg’ ) { ?>——————————
Thoughts?
Forum: Themes and Templates
In reply to: Unique header image for each pageHi there alchymyth – thank you for the quick response!
The site can be seen here – http://www.roundtablefun.comHere is the code for the header image in header.php – perhaps you can help me make some sense of it ?!
——–<div class=”head-img”>
<div class=”tagline”><?php bloginfo(‘description’); ?></div><?php $t_custom_background = get_option( “nattywp_custom_header” );
if ($t_custom_background != ”) { ?>
<img src=”<?php echo $t_custom_background; ?>” alt=”Header image” border=”0″ />
<?php } elseif (!isset($t_main_img) || $t_main_img == ‘no’ || $t_main_img == ‘header2.jpg’ ) { ?>
<img src=”<?php echo get_template_directory_uri(); ?>/images/header/headers.jpg” alt=”Header image” border=”0″ />
<?php } else { ?>
<img src=”<?php echo get_template_directory_uri(); ?>/images/header/<?php echo t_get_option( “t_main_img” ); ?>” alt=”Header image” border=”0″ />
<?php } ?>
</div>
—————–The theme has the ability to use a custom header controlled by the theme options in the admin panel – but i am not using that option.
Thanks again!Forum: Themes and Templates
In reply to: Unique header image for each pageI am using the Delicate theme and am trying to make it so that the heder has a different image only on the about us page. I have tried the methods you have listed about without much success… i was hoping that someone could point me in the right direction?
Thanks in advance!