Post by rvjventures » Thu Dec 09, 2021 6:00 am

Hello, anyone,
I'm trying to figure out a way to add my logo with my link to my site to the admin login page. (see attached as an example)
Can't seem to find anyone that has created an extension for it.
I tried to enter php and html coding to the index.php and the config.php but doesn't seem to work.
I am using Opencart version 3.0.36
Does anyone know how to do this?

Attachments

Untitled-1.jpg

Untitled-1.jpg (16.03 KiB) Viewed 399 times


Newbie

Posts

Joined
Wed May 02, 2018 10:17 pm

Post by mikeinterserv » Thu Dec 09, 2021 8:55 am

admin > view > template > common > login.twig
You should do it with an OCMod ideally. It is very easy.
I made you an OCMod, just need the file path and file name for the logo image to add to the install.xml or you can do that yourself if you know how.
There was an error in the first file so I changed it. This will add the opencart logo as a demo

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by rvjventures » Thu Dec 09, 2021 12:40 pm

Great thank you for the file. It didn't quite work exactly as I wanted but alot closer than I was.
So I added it to the login.twig file on the install.xml file within the zip file and with some tweaking I got it to work perfectly.
I added this on the login.twig file starting on line 6:
<div align="center" style="margin:auto;padding:0px;"><a href="https://domain.com"><img src="view/image/xxx.png" width="300px" height="100px"></a></div>

Thank you for the information.

Newbie

Posts

Joined
Wed May 02, 2018 10:17 pm

Post by Module Market » Thu Dec 09, 2021 2:36 pm

GOTO >> admin/view/template/common/login.twig

<img src="view/image/logo.png" alt="{{ heading_title }}" title="{{ heading_title }}" />

Add this code After <div class="col-sm-offset-4 col-sm-4"> this

User avatar
Newbie

Posts

Joined
Mon Jun 05, 2017 6:22 pm

Post by paulfeakins » Thu Dec 09, 2021 11:10 pm

rvjventures wrote:
Thu Dec 09, 2021 6:00 am
I'm trying to figure out a way to add my logo with my link to my site to the admin login page.
If you don't know enough to do something this simple you really shouldn't bother trying to re-brand OpenCart as your own system.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: jagall, moreduff and 262 guests