Hi evryone,
I apologize if there is already such a topic, but I have been struggling with it for two days. I want logo, search bar and cart to be in one row for mobile view. My web is https://buypower.bg/ and version is 2.3.0 . Default theme i use.
I apologize if there is already such a topic, but I have been struggling with it for two days. I want logo, search bar and cart to be in one row for mobile view. My web is https://buypower.bg/ and version is 2.3.0 . Default theme i use.
I'm guessing you need something like this but think it'll be a squeeze to get it all in. You may have to change the size of the search box. It's a starting point though and I'm sure some of the experienced coders can offer a better solution.
Code: Select all
<header>
<div class="container" style="relative;">
<div class="col-sm-4 col-xs-4">
<div id="logo">
<a href="https://buypower.bg/"><img src="https://buypower.bg/image/catalog/logo/SASHO-LOGO-small.png" title="Buy Power" alt="Buy Power" class="img-responsive" /></a>
</div>
</div>
<div class="col-sm-6 col-xs-4"><div id="search" class="input-group">
<input type="text" name="search" placeholder="Търсене" class="form-control input-lg" />
<span class="input-group-btn">
<button type="button" class="btn btn-primary-outline">
<i class="fa fa-search" style="font-size:36px" aria-hidden="true"></i>
</button>
</span> </div> </div>
<div class="col-sm-2 col-xs-4">
<div id="cart" class="btn-group btn-block">
<button type="button" data-toggle="dropdown" data-loading-text="Зареждане..." class="btn btn-inverse btn-block btn-lg dropdown-toggle"><i class="fa fa-shopping-cart"></i> <span id="cart-total"><span class="cart-count">0</span></span></button>
<ul class="dropdown-menu pull-right">
<li>
<p class="text-center">Вашата количка е празна!</p>
</li>
</ul>
</div>
</div>
</div>
</header>
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
Done, thanks johnp.
In fact, it's not very pretty now. Now let it work to hide the search box and show it when clicked. I know I'm going to need javascript for this so I'm starting to work on it. If anyone has a solution or wants to help with something is welcome.
In fact, it's not very pretty now. Now let it work to hide the search box and show it when clicked. I know I'm going to need javascript for this so I'm starting to work on it. If anyone has a solution or wants to help with something is welcome.
Personally I think it looks ok. That said, I would have the logo and cart button on one row and the search box underneath. Each to their own though.buypowerbg wrote: ↑Mon Mar 07, 2022 3:47 pmDone, thanks johnp.
In fact, it's not very pretty now. Now let it work to hide the search box and show it when clicked. I know I'm going to need javascript for this so I'm starting to work on it. If anyone has a solution or wants to help with something is welcome.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
I don't know where I'm wrong, but I can't get it. I found an even easier example, but I don't have a result there either. In fact scrip tage where need to be post, in header.tpl or search.tpl? If any can't help litle I would be very grateful
Attachments
Who is online
Users browsing this forum: No registered users and 18 guests