Changing dynamic text elements in Gather

3 Comments

  • Dave Dyson
    Hi Mark, you can find the HTML for that part of the page in the header.hbs file when editing your help center's theme. For more information, see Customizing your help center theme
    0
  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Hi Mark Glinski, if you want to edit the text you have red-bordered in provided screenshot then you can use the below JS code.

     

    1). Go to your community_topic_list_page.hbs file.




    2). Add the below JS code at the top.

    // To add DC for multiple languages

    <script>
      document.addEventListener('DOMContentLoaded', function() {
      var pageName = 'commnity-topic-list-template';
      
      var _x = document.querySelector("p");
      var _y = document.querySelector(".recent-activity-no-activities");
      if(pageName === 'commnity-topic-list-template') {
      _x.innerHTML = "{{dc 'test_title'}}";
      _y.innerHTML = "{{dc 'test_title'}}";
      }
    });
    </script>


    Note: To add DC click this text


    Screenshot:

     

     

    OR

     

    // To add any text you want in single language

    <script>
    document.addEventListener('DOMContentLoaded', function() {
      var pageName = 'commnity-topic-list-template';
      
      var _x = document.querySelector("p");
      var _y = document.querySelector(".recent-activity-no-activities");
      if(pageName === 'commnity-topic-list-template') {
      _x.innerHTML = "Hello Mark";
      _y.innerHTML = "Hello Mark";
      }
    });
    </script>


    Screenshot:


     


    If any confusion, do let me know :)

     

    Thanks

    Team 

     

    0
  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Hey, 

    You can edit your header link 'Sign in'

    1). Go to your   'header.hbs'  file.

     

    2). Find the text  '{{t 'sign_in'}}' .

     

    3). You can remove this text and write anything or you can edit it via DC: here

     

    Thanks

    0

Please sign in to leave a comment.

Powered by Zendesk