Customizing for logo and theme in 3.1.0
Posted: Sun Apr 26, 2020 3:21 am
Hello everyone!
First, congratulate the HESK team on the new v3 design. Great job!!
Here are some tips to customize HESK 3.1.0; specifically in the case of the logo and the theme, according to my own experience. I hope it can be useful to others, and any contribution to optimizing it, I will appreciate it.
THEME:
1 Copy the entire hesk3/ folder to YourthemeName/
2- Into new theme folder, open config.json and change to and save it
3- Go to Admin -> Setting -> General and select you "Your Theme Name" and save it
Now you can customize for color or anything from CSS folder
LOGO:
Particularly, I did not like the way to use the header.txt files because the logo is above the main "wrapper" layer. So I changed the code directly in the layer "header__inner. I know that the next update will overwrite the modified files but not, in that case, we will only have to put the code back until the development guys decide to apply something similar.
NOTE: Following apply to FRONTEND ONLY
1- Add a new variable to hesk_settings.inc.php to save the path to image. It can be a relative path to the image into folder of the root "img / my_logo.png", or (in my case) a URL of my official store logo "https: //mydomain.com/img/my_logo.pgn "
2- Create a new file "inc/header_logo.inc.php" and add this code:
3-Locate the following files in theme/hesk3/customer/ folder:
Replace with ... and save :
5- Ready. If your URL or relative path is correct, you should already be able to see the logo on all pages
SECOND NOTE: If you haven't made structural changes to your other themes, simply overwrite the files from step 3 in each theme folder, and the logo will be available in all
Best regards
First, congratulate the HESK team on the new v3 design. Great job!!
Here are some tips to customize HESK 3.1.0; specifically in the case of the logo and the theme, according to my own experience. I hope it can be useful to others, and any contribution to optimizing it, I will appreciate it.
THEME:
1 Copy the entire hesk3/ folder to YourthemeName/
2- Into new theme folder, open config.json and change
Code: Select all
"name": "HESK"
Code: Select all
"name": "Your Theme Name"
3- Go to Admin -> Setting -> General and select you "Your Theme Name" and save it
Now you can customize for color or anything from CSS folder
LOGO:
Particularly, I did not like the way to use the header.txt files because the logo is above the main "wrapper" layer. So I changed the code directly in the layer "header__inner. I know that the next update will overwrite the modified files but not, in that case, we will only have to put the code back until the development guys decide to apply something similar.
NOTE: Following apply to FRONTEND ONLY
1- Add a new variable to hesk_settings.inc.php to save the path to image. It can be a relative path to the image into folder of the root "img / my_logo.png", or (in my case) a URL of my official store logo "https: //mydomain.com/img/my_logo.pgn "
Code: Select all
$hesk_settings['[b]header_logo[/b]']='https://mydomain.com/wp-content/uploads/2018/03/myt_logo_web.png';
Code: Select all
<a href="<?php echo $hesk_settings['hesk_url']; ?>" title="<?php echo $hesk_settings['hesk_title']; ?>" class="header__logo">
<img width="119" height="49" src="<?php echo $hesk_settings['header_logo']; ?>" class="header_logo header-logo" alt="<?php echo $hesk_settings['hesk_title']; ?>">
</a>
4- Find this code into each one of them (normally after <div class="header__inner"> tag)/
- index.php
- error.php
- maintenance.php
create-ticket/
- create-ticket.php
- category-select.php
- create-ticket-confirmation.php
knowledgebase/
- view-category.php
- search-results.php
- view-article.php
view-ticket/
- view-ticket.php
- form.php
Code: Select all
<a href="<?php echo $hesk_settings['hesk_url']; ?>" class="header__logo">
<?php echo $hesk_settings['hesk_title']; ?>
</a>
Code: Select all
<?php include(HESK_PATH . 'inc/header_logo.inc.php'); ?>
SECOND NOTE: If you haven't made structural changes to your other themes, simply overwrite the files from step 3 in each theme folder, and the logo will be available in all
Best regards