ThemeShaper Forums » Thematic

[closed]

adding a search box to float right of branding

(3 posts)
  • Started 3 years ago by lastraw
  • Latest reply from lastraw
  • This topic is resolved
  1. Hi,

    I have this now, but want to add a searchbox in the header next to branding

    //Move Menu to top, one hopes
    function new_header() {
        remove_action('thematic_header','thematic_brandingopen',1);
        remove_action('thematic_header','thematic_access',9);
    }
    add_action('init', 'new_header');
    add_action('thematic_header','thematic_access',1);
    add_action('thematic_header','thematic_brandingopen',2);

    I found this by Chris

    function additional_header_content() {
    // your stuff goes inside here
    }
    add_action('thematic_header', 'additional_header_content', 6);

    and tried <?php get_search_form(); ?> for the your stuff goes here.

    I also tried widgetizing below_header but couldn't make it work PLUS suddenly I have no search widget!

    I am not having the most brilliant week.

    Any help would be appreciated.

    Leslie

    Posted 3 years ago #
  2. i think the function is thematic_search_form() and not get_search_form() but i am not 100%

    Posted 3 years ago #
  3. This seems to work:

    <?php
    //Move Menu to top, one hopes
    function new_header() {
        remove_action('thematic_header','thematic_brandingopen',1);
        remove_action('thematic_header','thematic_access',9);
    }
    add_action('init', 'new_header');
    add_action('thematic_header','thematic_access',1);
    add_action('thematic_header','thematic_brandingopen',2);
    
    function add_search(){
    include (TEMPLATEPATH . '/searchform.php');
    }
    add_action('thematic_header','add_search',3);
    ?>

    I had to add the number 3.

    Leslie

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.