-
lramirez
- Veteran Member
- Posts:114
- Joined: 2019-11-01 23:23
Post
by lramirez » 2026-02-03 02:09
Hi Jan.
I'm using AppGiniHelper to customize the login, but what do I need to add to change the text that says: Sign In Here?
...but without changing it in the language file. Or, if necessary, add additional text that I need users to see.
Code: Select all
<!-- file: hooks/header-extras.php -->
<script>
var lv = AppGiniHelper.LV;
if (lv != null) {
lv.setBackgroundGradient(" ", " ")
.setVariation(Variation.primary) // .success .danger .warning .info
.setIcons("user", "lock");
}
</script>

- change_title.png (10.97 KiB) Viewed 8190 times
Thanks
Luis Ramirez R.
-
jsetzer
- AppGini Super Hero

- Posts:2027
- Joined: 2018-07-06 06:03
- Location: Kiel, Germany
-
Contact:
Post
by jsetzer » 2026-02-03 04:57
Well, for translations the language.php-file or the integrated translation-tool in AdminArea is made for.
AppGini Helper Javascript Library does not contain additional functionality for modifying the panel-header text in login page. I consider adding such to next version.
If you need instant support, please send your OrderNumber by email. I will send a workaround to you within your 1-year-free-updates license.
-
saymaad - AppGini Super Hero

- Posts:131
- Joined: 2024-06-03 16:17
Post
by saymaad » 2026-02-03 05:13
To do this, without using any plug-in:
1) Add this to your
hooks/footer-extras.php
Code: Select all
$j('#login_splash').next().find('.panel-title strong').text('Your New Login Title Text');
2) To be specific that it runs only on the login-page, (even though login-splash exist on login page), wrap the above line as:
Code: Select all
<?php
$script_name = basename($_SERVER['PHP_SELF']);
if ($script_name == 'index.php' && (isset($_GET['signIn']) || isset($_GET['loginFailed']))) {
?>
<script>
$j('#login_splash').next().find('.panel-title strong').text('Your New Login Title Text');
</script>
<?php
}
?>
-
lramirez
- Veteran Member
- Posts:114
- Joined: 2019-11-01 23:23
Post
by lramirez » 2026-02-03 12:20
Wow, excellent! Thank you so much! It was very helpful.
Before, I had to modify line 116 of membership_signup.php, and when I recompiled, I had to do it all over again.
Thanks, saymaad
Last edited by
lramirez on 2026-02-03 12:30, edited 1 time in total.
Luis Ramirez R.
-
lramirez
- Veteran Member
- Posts:114
- Joined: 2019-11-01 23:23
Post
by lramirez » 2026-02-03 12:29
Thanks again Jan. The latest update of AppGiniHelper.min.js I have is from 2023, and everything works perfectly, but I'll look into getting the latest version you have.
Thanks
Luis Ramirez R.
-
onoehring
- AppGini Super Hero

- Posts:1464
- Joined: 2019-05-21 22:42
- Location: Germany
-
Contact:
Post
by onoehring » 2026-02-03 12:39
Hi,
maybe you like this as well. Sure, it's not code like Jan does, but it does it's job

Code goes into footer-extras.php (at least for me):
Code: Select all
// START add more HTML before login form
/**
* Inject a new DIV before the element with id="login_splash"
* Usage: paste this script where needed or inject dynamically.
*/
(function() {
document.addEventListener("DOMContentLoaded", function() {
try {
// find the login splash
var loginSplash = document.getElementById("login_splash");
if (!loginSplash) {
console.warn("login_splash not found on this page.");
return;
}
// create the new container
var newDiv = document.createElement("div");
newDiv.id = "myInjectedDiv";
// add your HTML content here
newDiv.innerHTML = `<div class="col-sm-6 col-lg-4"><div class="panel-success"><div class="panel-heading">
<h1>Your great application</h1>
<p></p>
<!-- Add more custom HTML as needed -->
</div></div></div>`;
/*
// optional: add classes or styles
newDiv.style.margin = "0 auto";
newDiv.style.padding = "0";
//newDiv.style.width = "100vw !important"
//newDiv.style.maxWidth = "600px";
//newDiv.style.backgroundColor = "#f9f9f9";
newDiv.style.border = "none";
newDiv.style.textAlign = "center";
*/
// insert before #login_splash
loginSplash.parentNode.insertBefore(newDiv, loginSplash);
console.log("Injected new DIV before login_splash.");
} catch (e) {
console.error("Error injecting DIV:", e);
}
});
})();
// END
Looks like this:

- ag_login2.png (57.41 KiB) Viewed 8166 times
Adjust what you want to display and maybe the CSS.
Olaf
-
lramirez
- Veteran Member
- Posts:114
- Joined: 2019-11-01 23:23
Post
by lramirez » 2026-02-04 14:05
Okay, excellent. I'll see which project I can apply it to. Thanks.
Luis Ramirez R.