Jump to content
Sign in to follow this  
hugobs

sticking twitter+search bar to the whole site?

Recommended Posts

hugobs

hi, a small question: would it be possible to have the grey bar (the one with the latest twitter post and the search box - i'm using white house) displayed above both posts and pages? presently it's not displayed above pages. thanks in advance, hugobs.

Share this post


Link to post
Share on other sites
cmunns

Are you using whitehouse or whitehouse pro? Can you provide a link to the site.

Share this post


Link to post
Share on other sites
hugobs

hi Adam, i'm using whitehouse. heres the link: www[dot]humanrights[dash]defenders[dot]org thanks in advance! hugobs

Share this post


Link to post
Share on other sites
cmunns

the Free version of the themes don't technically come with support, but this is easy enough to fix so I'll hook you up. In your page.php template file. Erase everything inside of the div with the id of "subhead" and put this inside instead: `<?php include (TEMPLATEPATH . '/_bloghead.php'); ?>` Hope that helps :)

Share this post


Link to post
Share on other sites
hugobs

thanks a lot Adam for the reply! i've just changed <?php if($post->post_parent || wp_list_pages("title_li=&child_of=".$post->ID."&echo=0")):?> <div id="subhead" class="fix"> <?php include (TEMPLATEPATH . '/_subnav.php'); ?> <?php include (TEMPLATEPATH . '/searchform.php'); ?> </div> <?php endif;?> into <?php if($post->post_parent || wp_list_pages("title_li=&child_of=".$post->ID."&echo=0")):?> <div id="subhead" class="fix"> <?php include (TEMPLATEPATH . '/_bloghead.php'); ?> </div> <?php endif;?> but unfortunately this does not change anything. sorry for bothering :(. best, hugobs.

Share this post


Link to post
Share on other sites
cmunns

It probably worked for some of the pages, but not pages controlled by specific page templates. Check other parts of your site and add the subhead to other page templates where necessary.

Share this post


Link to post
Share on other sites
hugobs

hi Adam! i've banged my head against the wall for days, i cannot make it work :(. to my knowledge i have only one page template (page.php) which controls all my pages. the subhead does not display on any of them. if you have any idea, this would be great. thanks! :) hugobs.

Share this post


Link to post
Share on other sites
hugobs

i've also tried <?php get_header(); ?> <?php if($post->post_parent || wp_list_pages("title_li=&child_of=".$post->ID."&echo=0")):?> <div id="subhead" class="fix"> <?php if(pagelines('twittername') || !pagelines('hidesearch')):?> <div id="subhead" class="fix"> <div class="subleft"> <?php if(pagelines('twittername')):?> <?php include (TEMPLATEPATH . '/_twittermessages.php'); ?> <?php else:?> <?php endif;?> </div> <?php include (TEMPLATEPATH . '/searchform.php'); ?> </div> <?php endif;?> </div> <?php endif;?> <div id="content" class=" fix"> <div id="maincontent" class="fix"> <?php include (TEMPLATEPATH . '/_pagecontent.php'); ?> </div> <?php get_sidebar();?> </div> <?php get_footer(); ?> without success :(

Share this post


Link to post
Share on other sites
cmunns

My mistake you woudln't have page templates in the free version, but it looks like the subhead is on all the pages now you're just missing the twitter section on the left (on all pages now) You have the twitter name entered in the options right?

Share this post


Link to post
Share on other sites
hugobs

hi Adam! i took out the twitter name in the options, so no problem on that side. but actually the bar is still not displayed above pages (= "mandate", "reports", "missions";, i.e. www[dot]humanrights[dash]defenders(dot)org(slash)achpr-mandate). i can't understand what i'm missing :(

Share this post


Link to post
Share on other sites
hugobs

hi Adam, i solved the problem: showing categories instead of pages in the header avoided the bloghead being displayed when clicking on a page. this worked when i replaced wp_list_categories by wp_list_pages in header.php. i'll reorganise all this later. many THANKS anyway for your patience and support! ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×