Post by stevy22 » Wed Dec 26, 2018 3:11 pm

Hi, I would like to move the search box a bit down : from the top to under the navigation bar. I see many solutions in this forum but all are for earlier versions of Opencart. Where can I change the code to move the search box for the most recent version of Opencart 3.0.2.0. ? Thanks !

Newbie

Posts

Joined
Tue Aug 15, 2017 10:11 pm

Post by DigitCart » Wed Dec 26, 2018 4:44 pm

Hi
If you are using default theme, it is here:
catalog\view\theme\default\template\common\header.twig
<div class="col-sm-5">{{ search }}</div>

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by synapseindia » Wed Dec 26, 2018 9:08 pm

You can play around with CSS to do this. Make sure you are not going to modify core files for future upgrade reference.

User avatar
Active Member

Posts

Joined
Thu Apr 05, 2018 2:27 pm

Post by stevy22 » Thu Dec 27, 2018 2:46 am

I can find the file :
catalog\view\theme\default\template\common\header.twig
<div class="col-sm-5">{{ search }}</div>
but what can I change to bring the search box under the category bar ?

Newbie

Posts

Joined
Tue Aug 15, 2017 10:11 pm

Post by synapseindia » Thu Dec 27, 2018 9:17 pm

You can shift this column to up and down wherever it is required to placed.
You can create OCMod xml file to do this.

User avatar
Active Member

Posts

Joined
Thu Apr 05, 2018 2:27 pm
Who is online

Users browsing this forum: belowcost and 367 guests