Forums / Templates, Stylesheets, Page Layout / How to delete the top search box?

How to delete the top search box?

Locked

Views: 1,195

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
4 Jun 2010, 1:04 AM
#1
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

How to delete the top search box?

Hi

I've just installed the mod "Alternative header 1.1a" and now i have "// ?>" between the logo and search box. I want to delete these characters and the search box so the cat tabs come directly after the logo. can somebody tell me how to do this?

Site is at http://store.mmw.ie/

Thanks in advance

4 Jun 2010, 1:11 AM
#2
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: How to delete the top search box?

You should be able to turn the search off in Admin>Tools>Layout Boxes Controller>sideboxes/search_header.php.........set to "off".

It that doesn't take care of the "// ?>" you've got there, we'll look into that.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

4 Jun 2010, 1:23 AM
#3
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

Re: How to delete the top search box?

Thanks that worked.

I need to delete the image there as well.

4 Jun 2010, 1:38 AM
#4
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

Re: How to delete the top search box?

deleted duplicate post

4 Jun 2010, 1:39 AM
#5
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: How to delete the top search box?

Add this to your includes/templates/nightfall/css/stylesheet.css:

#navMainWrapper {display: none;}

Looks like you've got an error causing the "// ?".......probably in one of these two files:

includes/templates/nightfall/common/tpl_header.php
or
includes/templates/nightfall/common/html_header.php

Check both of those files for errors. Have any problems finding it, pm me.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

4 Jun 2010, 1:53 AM
#6
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

Re: How to delete the top search box?

Thanks

I uploaded the file includes/templates/nightfall/common/tpl_header.php that came with the mod so I'll look into that first.

4 Jun 2010, 2:01 AM
#7
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: How to delete the top search box?

Have you made any changes to ANY php code ANYWHERE, lately? If so, do you remember which file it was in?
Also, if so, THAT would be the place to start looking. The earlier was just suggestions.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

4 Jun 2010, 8:22 AM
#8
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

Re: How to delete the top search box?

I've installed quite a few mods over the last week or so but this error only showed up after I moved the header so it looks to me like the error is in tpl_header.php

Can you tell me what divs control this area so i can narrow it down or am i on the wrong track?

is it navmain?

4 Jun 2010, 8:49 AM
#9
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: How to delete the top search box?

It could be anywhere in that file. If you'll pm me a copy, I'll help you look for it.

Oh, wait......I think I see it. Look here:

<!--bof-header logo and navigation display-->
//  <!--eof-drop down menu display-->

?>
<!--bof-navigation display-->

You're going to need to take out the // and the ?>

Let me know if that's it.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

4 Jun 2010, 9:12 AM
#10
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

Re: How to delete the top search box?

I've searched the file and can't find that code. how did you find the error?

Searched using some of your code and found this around line 92 tho, if it helps?

<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>
<?
//<!--bof-drop down menu display-->
//  <?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?>
//  <!--eof-drop down menu display-->
?>
<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
4 Jun 2010, 9:44 AM
#11
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

Re: How to delete the top search box?

I just deleted the over-ride for tpl_header.php and the error disappears so it looks like the error is linked to moving the login links into the logo. I'll look again later to see if i can locate this section. thanks again for all your help

4 Jun 2010, 11:37 AM
#12
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

Re: How to delete the top search box?

If anybody else has this problem, I've stumbled across the solution in Post #5 here http://www.zen-cart.com/forum/showthread.php?t=85156

Couldn't find it when i searched the forum, for some strange reason.

Thanks for all your help Get Em Fast. much appreciated

4 Jun 2010, 1:46 PM
#13
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: How to delete the top search box?

iddy:

how did you find the error?

Just used the good ole' "View Source" for that one......no special tools.

Glad to see you got it worked out.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!