Post by Bostem » Fri Oct 25, 2024 4:51 am

Good Evening All,
This is my first post on the forum and I apologise if this question is either in the wrong place or has already been raised and/or answered.

I have a main ecommerce website domain and have created a number of sub-domains with associated layouts for a number of my clients. Each of the sub-domains have a seperate layout which includes the clients "logo" as the store logo, and on a few of them, a differenet colour scheme to my main web site. These all work and appear as required when viewed on PC/Latop, however when viewed, as many of them are these days, on mobile devices, the store logo and colour scheme revert back to my main site details.

I changed the sub-domain layout colour scheme in "public_html/catalog/view/theme/myshop/css/css_compress_colours.php" which works as I want it to (as stated above), but I assume I also have to edit/update another part of this file, or another file to ensur ethe "Mobile Layout" view also displays the relevant store logo and colour scheme.

If anyone can help and/or advise I would be very grateful.

My main website domain is https://dnbsupplies.com and one of my sub-domains with different store logo and colour scheme (which changes when viewed on Mobile) is https://fortitudefitness.dnbsupplies.com

Thanks in advance

Newbie

Posts

Joined
Wed Jan 29, 2020 6:00 pm

Post by ADD Creative » Fri Oct 25, 2024 5:18 am

You will need to post your OpenCart version and the theme your are using. It doesn't look like OpenCart 1.5.x or the default theme. It looks a very customised theme. Have you contacted the developer about the issue?

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by Bostem » Fri Oct 25, 2024 5:34 am

Apologies I did mean to include the following details...we are running Opencart Version 2.3.0.2 and our theme is based on the MyShop theme.

Newbie

Posts

Joined
Wed Jan 29, 2020 6:00 pm

Post by grgr » Fri Oct 25, 2024 7:31 am

When in mobile view it hides the Desktop header div and shows the mobile header div - which has your default logo in.

So, maybe some updates to the template files and/or controller files required

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by Bostem » Fri Oct 25, 2024 2:45 pm

Thanks grgr - please forgive my ignorance as I am new to opencart development/updates, where would I find the "mobile header div" ?

Newbie

Posts

Joined
Wed Jan 29, 2020 6:00 pm

Post by ADD Creative » Fri Oct 25, 2024 4:21 pm

For the default theme it's in catalog/view/theme/default/template/common/header.tpl. However you theme will be different, it won't be the the default directory for a start.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by JNeuhoff » Fri Oct 25, 2024 6:38 pm

Check if there is a catalog/view/theme/myshop/template/common/header.tpl . It should have a logo section, and in there use something like this:

Code: Select all

<div class="logo2">
    <a href="/"><img src="https://fortitudefitness.dnbsupplies.com/image/catalog/01%20-%20Fortitude%20Fitness/Fortitude%20Fitness%20Full%20on%20green.png" title="DNB Supplies" alt="DNB Supplies"></a>
</div>

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by by mona » Fri Oct 25, 2024 7:08 pm

Just to add FYI
Files and folders should have no spaces or special characters.
Both your image folder and the image itself have spaces.

Capital letters are not an issue, but should be avoided.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by Bostem » Mon Oct 28, 2024 3:36 am

JNeuhoff wrote:
Fri Oct 25, 2024 6:38 pm
Check if there is a catalog/view/theme/myshop/template/common/header.tpl . It should have a logo section, and in there use something like this:

Code: Select all

<div class="logo2">
    <a href="/"><img src="https://fortitudefitness.dnbsupplies.com/image/catalog/01%20-%20Fortitude%20Fitness/Fortitude%20Fitness%20Full%20on%20green.png" title="DNB Supplies" alt="DNB Supplies"></a>
</div>
Thanks, I will have a look for that, much apprecitaed

Newbie

Posts

Joined
Wed Jan 29, 2020 6:00 pm

Post by Bostem » Mon Oct 28, 2024 3:37 am

by mona wrote:
Fri Oct 25, 2024 7:08 pm
Just to add FYI
Files and folders should have no spaces or special characters.
Both your image folder and the image itself have spaces.

Capital letters are not an issue, but should be avoided.
Thanks Mona, but where do yoiu mean and what specifically? I appreciate yoru advice and help.

Newbie

Posts

Joined
Wed Jan 29, 2020 6:00 pm

Post by grgr » Mon Oct 28, 2024 6:33 am

https: //fortitudefitness.dnbsupplies.com/image/catalog/01%20-%20Fortitude%20Fitness/Fortitude%20Fitness%20Full%20on%20green.png

Folder name is "Fortitude Fitness"
Image name is "Fitness Full on green"

It is best not to have spaces: Fitness-full-on-green

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK
Who is online

Users browsing this forum: No registered users and 2 guests