Post by Domifix » Fri Mar 01, 2019 8:58 pm

How can I remove the search bar in my header on my OC 3 Installation?

Newbie

Posts

Joined
Tue Jun 25, 2013 5:33 am

Post by straightlight » Fri Mar 01, 2019 9:45 pm

catalog/view/theme/your_theme/template/common/header.twig file. The location did not changed.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Domifix » Fri Mar 01, 2019 10:56 pm

Great, thanks for your help.

Newbie

Posts

Joined
Tue Jun 25, 2013 5:33 am

Post by Domifix » Fri Mar 01, 2019 11:14 pm

Well, remove of " <div class="col-sm-5">{{ search }}</div> " didnt solve it (incl. refresh in admin portal)

Do I need to remove something else?
I am using the default theme and modified headre.twig in /catalog/view/theme/default/template/common

Newbie

Posts

Joined
Tue Jun 25, 2013 5:33 am

Post by straightlight » Fri Mar 01, 2019 11:29 pm

If you refreshed the cache by following the FAQ: viewtopic.php?f=176&p=739789#p718325 , then you'll need to follow this one: viewtopic.php?f=176&p=739789#p717782

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by paulfeakins » Mon Mar 04, 2019 6:48 pm

Domifix wrote:
Fri Mar 01, 2019 11:14 pm
I am using the default theme and modified headre.twig in /catalog/view/theme/default/template/common
https://www.antropy.co.uk/blog/how-to-c ... t-3-0-2-0/

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by letxobnav » Mon Mar 04, 2019 8:28 pm

just be aware that removing the display indicator in the twig file will stop it from displaying but the controller header.php will still execute the search controller to create the search display html.

Code: Select all

$data['search'] = $this->load->controller('common/search');
which, in this case, is a waste of cpu cycles.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by tmart » Fri Apr 10, 2020 4:32 am

Hi, Can you please tell me how to remove the complete default details on Opencart 3? I would like it to look like in this attached picture. Thanks and regards
Tissy

Attachments

OC3032.jpg

OC3032.jpg (49.41 KiB) Viewed 2468 times


Image
Logo Printed / Embroidered T-Shirts
Polo Shirts, Sweatshirts & Hoodies

http://www.tmart.in


New member

Posts

Joined
Fri Jan 21, 2011 2:02 am


Post by Pakey » Fri Mar 03, 2023 11:35 am

Domifix wrote:
Fri Mar 01, 2019 8:58 pm
How can I remove the search bar in my header on my OC 3 Installation?
I hide it with CSS in file stylesheet.css at line 131 catalog/view/theme/default/stylesheet/stylesheet.css

/* search */
#search {
margin-bottom: 10px;
display: none;
}

Newbie

Posts

Joined
Fri Mar 03, 2023 11:28 am
Who is online

Users browsing this forum: Baidu [Spider] and 18 guests