Post by omid219 » Wed Jul 01, 2015 9:34 am

Hi All,

Would you please let me know how can I remove the search box along with the box next to it that shows "0 items, $0.00 from default OC 2.0.2 template?

Thanks in advance

Newbie

Posts

Joined
Wed Jul 01, 2015 9:28 am

Post by viethemes » Thu Jul 02, 2015 1:17 am

You can open file catlaog/view/theme/default/template/common/header.tpl
find

Code: Select all

 <?php echo $search; ?>
and remove it.

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by omid219 » Thu Jul 02, 2015 1:31 am

Thanks for the reply. But I have tried this already and nothing append. Somehow when I remove the lines related to search box and total item count nothing happens. Could it be related to some of the vqmod extensions that I have installed?

Newbie

Posts

Joined
Wed Jul 01, 2015 9:28 am

Post by viethemes » Fri Jul 03, 2015 12:03 am

omid219 wrote:Thanks for the reply. But I have tried this already and nothing append. Somehow when I remove the lines related to search box and total item count nothing happens. Could it be related to some of the vqmod extensions that I have installed?
Maybe a OCMOD extension is creating a cache for this file. You can try going to admin > Extensions > Modifications > click on the Refresh button and recheck it again.

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by luican » Mon Jul 06, 2015 1:39 pm

Hi
You can edit stylesheet.css file:
Catalog/view/theme/yourtheme/stylesheet/stylesheet.css
found:

Code: Select all

#search{
....
}
Add

Code: Select all

Display:none;
E.g

Code: Select all

#search{
........
Display:none;
}

Remove total items:

Edit language file:Catalog/language/english/common/cart.php

Code: Select all

$_['text_items']='%s items(s) - %s';
Changed

Code: Select all

$_['text_items']='%s';
Good luck

Image

Free Featured Category Module My themes on Opencart


New member

Posts

Joined
Sun Jul 05, 2015 4:17 pm


Post by omid219 » Tue Jul 07, 2015 12:57 am

Thanks all for the answers. I created a small vqmod xml file to change the core files according it looks good now.
I didn't change the css file because I think that just hides the search box but I want to remove that row completely so there will be smaller gap between top header and top menu bar.

Newbie

Posts

Joined
Wed Jul 01, 2015 9:28 am

Post by civanescu » Wed Feb 03, 2016 3:40 pm

omid219 wrote:Thanks all for the answers. I created a small vqmod xml file to change the core files according it looks good now.
I didn't change the css file because I think that just hides the search box but I want to remove that row completely so there will be smaller gap between top header and top menu bar.
It is posible to share it? Actually I'm looking to disable the search box only when mobile (or low resolution) enter in site.

10x,
C

Newbie

Posts

Joined
Wed Dec 09, 2015 6:28 pm

Post by viethemes » Thu Feb 04, 2016 1:15 am

civanescu wrote:
omid219 wrote:Thanks all for the answers. I created a small vqmod xml file to change the core files according it looks good now.
I didn't change the css file because I think that just hides the search box but I want to remove that row completely so there will be smaller gap between top header and top menu bar.
It is posible to share it? Actually I'm looking to disable the search box only when mobile (or low resolution) enter in site.

10x,
C
To do that you can install my free extension Custom CSS and add below code

Code: Select all

@media (max-width: 768px) {
	#search {
		display: none;
	}
}

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by astaga88 » Sat Nov 12, 2016 9:06 am

Thank you for custom css code snippet.

The search box on smaller devices did disappear, but the search icon (magnifying glass) is still visible.
See pic, top is before, and bottom is result on small screens.
searchbar illustration.png

search bar illustration - searchbar illustration.png (11.27 KiB) Viewed 3311 times

How do I remove the magnifying glass portion?

Thanks.
viethemes wrote:To do that you can install my free extension Custom CSS and add below code

Code: Select all

@media (max-width: 768px) {
 #search {
 display: none;
 }
}

Newbie

Posts

Joined
Thu Nov 10, 2016 7:36 pm
Who is online

Users browsing this forum: No registered users and 3 guests