- 17 Jan 2023
- 1 Minuto para leer
-
Colaboradores
-
Impresión
-
OscuroLigero
-
PDF
How to change the 'Documentation' (button) header link name?
- Actualizado en 17 Jan 2023
- 1 Minuto para leer
-
Colaboradores
-
Impresión
-
OscuroLigero
-
PDF
If you wish to change the 'Documentation' header link text on the Home page you will not be able to do so directly from the Home page header module.
Follow the below workaround to change the text that appears in place of the Documentation button.
With the current implementation, even using the workaround, you can only change the 'Documentation' button text and not the link.
By default, the 'Documentation' button leads to the Knowledge base site page and lands on the first category (Index type) (or) first category page (or) the first article in your first category (folder type).
Solution
- Go to Settings → Knowledge base site → Custom CSS & JavaScript → Custom JavaScript
- Copy and paste the below snippet into the window
$(document).ready(function() {
if ($('.header-link').length > 0) {
$('.header-link').html($('.header-link').html().replace("Documentation", "Destek"));
}
});
- Replace the example text '<Destek>' with your desired text for the button
- Click Save
Outcome
Before
The header link button appears as Documentation by default.
After
With the Custom JavaScript, the header link button is changed to Destek