Post by stampgo7 » Wed Oct 04, 2017 2:24 am

Hi
how can I resize the logo.png file?.
I tried to upload a bigger file but I get the same result.

Newbie

Posts

Joined
Mon Sep 11, 2017 8:05 pm

Post by IP_CAM » Wed Oct 04, 2017 11:32 am

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

I'm no longer active at the Forum, to reach me, contact: jti@jacob.ch
My free Opencart LIGHT Code is available on demand, and can be
seen in Action here: http://www.opencart.li/dark/ - http://www.opencart.li/bright/
900+ FREE OC Extension-Repositories - from OC v.1.5.x up, on the
world's largest OC-related 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 stampgo7 » Wed Oct 04, 2017 4:16 pm

Hi
I forgot to mension that I have installed Logancee theeme, so should I do what you say?

Newbie

Posts

Joined
Mon Sep 11, 2017 8:05 pm

Post by IP_CAM » Thu Oct 05, 2017 1:57 am

Sure not, at least not, before your compared the Code with the one in your Theme !
Ernie

I'm no longer active at the Forum, to reach me, contact: jti@jacob.ch
My free Opencart LIGHT Code is available on demand, and can be
seen in Action here: http://www.opencart.li/dark/ - http://www.opencart.li/bright/
900+ FREE OC Extension-Repositories - from OC v.1.5.x up, on the
world's largest OC-related 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 ozbpohs » Mon May 06, 2019 12:12 am

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

Newbie

Posts

Joined
Fri Apr 20, 2018 3:42 am

Post by IP_CAM » Mon May 06, 2019 4:42 am

Help Yourself ! ;)
Image

Attachments

happytails_problems.jpg

happytails_problems.jpg (247.68 KiB) Viewed 192 times


I'm no longer active at the Forum, to reach me, contact: jti@jacob.ch
My free Opencart LIGHT Code is available on demand, and can be
seen in Action here: http://www.opencart.li/dark/ - http://www.opencart.li/bright/
900+ FREE OC Extension-Repositories - from OC v.1.5.x up, on the
world's largest OC-related 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 ozbpohs » Mon May 06, 2019 6:42 am

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.

Newbie

Posts

Joined
Fri Apr 20, 2018 3:42 am

Post by ozbpohs » Mon May 06, 2019 7:07 am

YOU DID IT! it's done.
Thank you so much!

Newbie

Posts

Joined
Fri Apr 20, 2018 3:42 am

Post by IP_CAM » Mon May 06, 2019 8:10 am

Good for you ! :D

I'm no longer active at the Forum, to reach me, contact: jti@jacob.ch
My free Opencart LIGHT Code is available on demand, and can be
seen in Action here: http://www.opencart.li/dark/ - http://www.opencart.li/bright/
900+ FREE OC Extension-Repositories - from OC v.1.5.x up, on the
world's largest OC-related Github Site: https://github.com/IP-CAM
Image


User avatar
Legendary Member

Posts

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

Users browsing this forum: No registered users and 4 guests