Need help with Thesis Wordpress Theme

by Colton
2 replies
I'm having a ton of trouble with this. I'm trying to create a separate header for a certain page and for some reason I cannot figure out how to do this. I think I have all of my hooks right it just seems that I do not know the name for the custom header I've made in the css. Is it thesis_custom_header? Because when I remove the action of the thesis_default_header the header is still visible. Please help if you know how to do this! Here is the code to see if I've done this right.

function newsletter_header() {
if (is_page('203')) { ?>
<div id="banner"><img src="myimage" alt="header" /></div>
<?php }
else { thesis_default_header(); }
}
remove_action('thesis_hook_header', 'thesis_default_header');
add_action('thesis_hook_header', 'newsletter_header');
#theme #thesis #wordpress
  • Profile picture of the author indexphp
    That code basically says...

    If Page id# 203... execute this code: <div id="banner"><img src="myimage" alt="header" /></div>

    else... use the default function: else { thesis_default_header(); }

    Do you want the new header sitewide or just on 1 single post? If you want it sitewide, you need to change the default
    {{ DiscussionBoard.errors[2084591].message }}
  • Profile picture of the author Colton
    Hey thanks for the reply. Yes I just want this header for this page only. I can't seem to remove the header that I've inputted in the custom.css file either. Do I need to create a header image in hooks rather than in the css file to make it easier to remove_action? Or when I am using the remove_action what would my header be called for the custom.css? I just think that on my remove_action that the custom header is not responding to 'thesis_default_header' I am having a lot of trouble with this and it may be hard to understand my problem exactly but any help is appreciated. Thanks.
    {{ DiscussionBoard.errors[2086023].message }}

Trending Topics