How to change the 'Documentation' (button) header link name?
  • 17 Jan 2023
  • 1 Minuto para leer
  • Colaboradores
  • Oscuro
    Ligero
  • PDF

How to change the 'Documentation' (button) header link name?

  • Oscuro
    Ligero
  • PDF

There is no Spanish content available for this article, You are viewing the fallback version (English).

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.

Unable to edit the button link

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

  1. Go to SettingsKnowledge base siteCustom CSS & JavaScriptCustom JavaScript
  2. 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"));    
    }
});
  1. Replace the example text '<Destek>' with your desired text for the button
  2. Click Save

Outcome

Before

The header link button appears as Documentation by default.
6_Screenshot-Homepage_header_before


After

With the Custom JavaScript, the header link button is changed to Destek
7_Screenshot-Homepage_header_after


¿Te ha sido útil este artículo?

What's Next