Page 1 of 1
Problem with totop and head.txt update to 3.4.0
Posted: Thu Sep 29, 2022 6:32 am
by lhesk
Yesterday I updated hesk to version 3.4.0 but after updated I found two problems.
1. Button "to top" disappeared.
2. I had code in head.txt but now code doesn't load in section <head>
Re: Problem with totop and head.txt update to 3.4.0
Posted: Thu Sep 29, 2022 7:27 am
by Klemen
Both work fine for me?
Double-check that your head.txt still contains your code (that you didn't overwrite it).
The "Back to top" button only appears when the ticket page is at least 800 pixels high. Maybe some of the missing code from your head is causing Javascript errors?
Re: Problem with totop and head.txt update to 3.4.0
Posted: Fri Sep 30, 2022 7:11 am
by lhesk
You have right, button "to top" appear only in tickets but how to change code that this button appear in another pages ?
I installed clean hesk by softaculous and I added to head.txt below code but this code doesn't appear in <head> section.
<script src="
https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
Re: Problem with totop and head.txt update to 3.4.0
Posted: Fri Sep 30, 2022 7:38 am
by Klemen
Where are you trying to add that code? Note that whatever you add to head.txt only appears in the customer side. If you want to add something to the admin side, you will need to edit /inc/header.inc.php
To add "back to top" to other pages in admin, you will need to edit each page you want it to add. I can't provide much support for such customizations, but the general guideline is you will need this at the top:
And this somewhere at the bottom of the page:
Code: Select all
<a href="#" class="back-to-top"><?php echo $hesklang['btt']; ?></a>
Re: Problem with totop and head.txt update to 3.4.0
Posted: Fri Sep 30, 2022 8:13 am
by lhesk
Thanks for your help. I thought that code head.tx work both admin and client.