Results 1 to 4 of 4

Thread: Need Help in Moving Search Form to Header.php

  1. #1
    Thread Starter
    jobortunity's Avatar
    Join Date
    Oct 2011
    Location
    Kitchener, Ontario
    Posts
    153
    Thanks
    11
    Thanked 11 Times in 9 Posts

    Need Help in Moving Search Form to Header.php

    This question is for the developers of JobRoller, or anyone that has done this before. Here's the link to where the child theme is located: http://on.jobortunity.ca

    I need to move the search bar container to a different location. Here's what I've tried so far, and I'm not getting any luck with this.

    Currently I see the search wrap container is located in to files.. header-search.php for job searching, and header-resume-search.php for resume search.

    I also see the following code in the index.php file which calls to search.php and search-resume.php files.. okay I get that..

    Code:
    <?php 
    	// Empty search fixes
    	if (isset($_GET['resume_search']) && $_GET['resume_search']) : 
    		if (isset($_GET['s']) && isset($_GET['location']) && !empty($_GET['location'])) : get_template_part('search-resume'); exit; endif;
    		wp_safe_redirect(get_post_type_archive_link('resume'));
    		exit;
    	endif;
    	if (isset($_GET['s']) && isset($_GET['location']) && !empty($_GET['location'])) : get_template_part('search'); exit; endif;
    ?>
    
    
    <?php get_header('search'); ?>
    The problem I'm having is relocating the search form to another container located within the header.php file. If I remove the code above and place it within the container, my whole template crashes. I use <?php get_header('search'); ?> within the container I need, it will display the search bar container, but will not change over when visiting the resume page.

    Not sure what I'm missing, or perhaps I overlooked something.. and so I need your help guys. How can I move the search container to the location I need, and have it fully functional.

    Thanks in advance.

  2. #2
    Thread Starter
    jobortunity's Avatar
    Join Date
    Oct 2011
    Location
    Kitchener, Ontario
    Posts
    153
    Thanks
    11
    Thanked 11 Times in 9 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    coza's Avatar
    Join Date
    Jul 2011
    Location
    Cape Town, South Africa
    Posts
    141
    Thanks
    53
    Thanked 12 Times in 10 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Jobroller: JobsTown

  4. #4
    Thread Starter
    jobortunity's Avatar
    Join Date
    Oct 2011
    Location
    Kitchener, Ontario
    Posts
    153
    Thanks
    11
    Thanked 11 Times in 9 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Moving login and sign up from header to nav menu....????
    By husslemine in forum ClassiPress General Discussion
    Replies: 2
    Last Post: May 23rd, 2012, 10:20 PM
  2. Moving a category to the header where post an ad is situated?
    By cyclebarter in forum ClassiPress General Discussion
    Replies: 2
    Last Post: January 23rd, 2012, 02:43 PM
  3. Moving a category to the header where post an ad is situated?
    By cyclebarter in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: January 23rd, 2012, 11:10 AM
  4. [MOD NEEDED] Moving The Inquiry Form
    By revlimiter in forum ClassiPress General Discussion
    Replies: 3
    Last Post: October 31st, 2010, 01:19 PM
  5. Moving the Search sidebar widget
    By juliusnkemdiche in forum ClassiPress General Discussion
    Replies: 15
    Last Post: September 9th, 2010, 08:52 PM