Page 1 of 1

Logo resize

Posted: Wed Oct 04, 2017 2:24 am
by stampgo7
Hi
how can I resize the logo.png file?.
I tried to upload a bigger file but I get the same result.

Re: Logo resize

Posted: Wed Oct 04, 2017 11:32 am
by IP_CAM
in:
OC_3.0.2.0\catalog\view\theme\default\template\common\header.twig
change this:

Code: Select all

 <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 this:

Code: Select all

 <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>
then, reset your Caches, and try again.
Out of a total of 12 Sections TOTAL WIDTH, we added one section to the Logo Display,
and removed one section from the Search Display, that's it. But it's untested, strictly theoratical !
Good Luck ;)
Ernie

Re: Logo resize

Posted: Wed Oct 04, 2017 4:16 pm
by stampgo7
Hi
I forgot to mension that I have installed Logancee theeme, so should I do what you say?

Re: Logo resize

Posted: Thu Oct 05, 2017 1:57 am
by IP_CAM
Sure not, at least not, before your compared the Code with the one in your Theme !
Ernie

Re: Logo resize

Posted: Mon May 06, 2019 12:12 am
by ozbpohs
I followed your instructions, I'm running opencart Version 3.0.3.2, with a zerocart theme zSports.
I've edited header twig, css of the default, css of the theme, among other attempts.
when I clear cache and refresh, the change to div class="col-sm-5" etc DOES show up on inspection of element but the logo size does not change.
Any help would be appreciated http://www.billieraven.com/happytails

Re: Logo resize

Posted: Mon May 06, 2019 4:42 am
by IP_CAM
Help Yourself ! ;)
Image

Re: Logo resize

Posted: Mon May 06, 2019 6:42 am
by ozbpohs
Wow! That was a very comprehensive answer and I do appreciate it!
I am going to try very hard to understand it.

I keep editing the stylesheet for zSports to 350 or 450 width but something keeps resizing it down.
I will again change the div class back to 5

I do not understand the screenshot of Not Found for the zSports stylesheet but I will try to understand it

I really appreciate all you've done to help me.

Re: Logo resize

Posted: Mon May 06, 2019 7:07 am
by ozbpohs
YOU DID IT! it's done.
Thank you so much!

Re: Logo resize

Posted: Mon May 06, 2019 8:10 am
by IP_CAM
Good for you ! :D