Post by danky01 » Tue Jul 24, 2018 9:42 pm

I need to shorten the length of the search box at the top of the home page. I have searched and could not find an old post on this subject. I am using OC 3.0.2.0 and the default theme. Any chance someone would like to help me with this? I don't know how to write code, however I can follow clear directions. I have done that a lot.
Thanks in advance
Danny

New member

Posts

Joined
Sun Apr 13, 2014 2:46 am

Post by IP_CAM » Wed Jul 25, 2018 2:30 am

IN:
theme/template/common/header.twig
CHANGE:

Code: Select all

 <div class="container">
    <div class="row">
      <div class="col-sm-4">
        <div id="logo">{% if logo %}<a href="{{ home }}"><img src="{{ logo }}" title="{{ name }}" alt="{{ name }}" class="img-responsive" /></a>{% else %}
          <h1><a href="{{ home }}">{{ name }}</a></h1>
          {% endif %}</div>
      </div>
      <div class="col-sm-5">{{ search }}</div>
      <div class="col-sm-3">{{ cart }}</div>
    </div>
TO:

Code: Select all

 <div class="container">
    <div class="row">
      <div class="col-sm-5">
        <div id="logo">{% if logo %}<a href="{{ home }}"><img src="{{ logo }}" title="{{ name }}" alt="{{ name }}" class="img-responsive" /></a>{% else %}
          <h1><a href="{{ home }}">{{ name }}</a></h1>
          {% endif %}</div>
      </div>
      <div class="col-sm-4">{{ search }}</div>
      <div class="col-sm-3">{{ cart }}</div>
    </div>
OR:

Code: Select all

 <div class="container">
    <div class="row">
      <div class="col-sm-4">
        <div id="logo">{% if logo %}<a href="{{ home }}"><img src="{{ logo }}" title="{{ name }}" alt="{{ name }}" class="img-responsive" /></a>{% else %}
          <h1><a href="{{ home }}">{{ name }}</a></h1>
          {% endif %}</div>
      </div>
      <div class="col-sm-4">{{ search }}</div>
      <div class="col-sm-4">{{ cart }}</div>
    </div>
or to something else, totalling the Value of the 3 Sections, involved, to 12
Ernie
PS. But it WON'T show up, before you cleaned out all your CACHE Sections first ...

I am no longer active around here, to reach me, contact: jti@jacob.ch
My latest Freeware Opencart LIGHT Testsite, available on demand: http://www.ebikes.li/shop/
My 888 FREE OC Extension-Repositories - from OC v.1.5.x up,
on the largest OC Extension Github Site: https://github.com/IP-CAM
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by danky01 » Wed Jul 25, 2018 10:29 am

Worked perfectly.

Thank you so much
Danny

New member

Posts

Joined
Sun Apr 13, 2014 2:46 am
Who is online

Users browsing this forum: OSWorX and 6 guests