How can I change the wording in the "Recent activity" heading?

Avec réponse


Publication le 26 avr. 2017

I would like to reword the heading. I see that it is represented by the {{recent_activity}} placeholder. How do I change this text, and other text that is brought by these placeholders?


0

30

30 commentaire

Hi Fiorella!

You can try adding something like this at the bottom of the script.js file. 

This code specifically allows you to change the "Follow"/"Unfollow" button text within article pages.

$(document).ready(function() {
  if($(".article-subscribe div button").attr("data-selected") === "false") {
  $(".article-subscribe div button").text('Something')
  } else {
    $(".article-subscribe div button").text('Something Else')
  }
});

$(".article-subscribe").click(function() {
  if($(".article-subscribe div button").attr("data-selected") === "false") {
      $(".article-subscribe div button").text('Something')
  } else {
    $(".article-subscribe div button").text('Something Else')
  }
});

0


Hi team, How can I change the wording in the “Fallow” button?

0


It is possible to display "category" instead of "section" in "Recent Activity" section?

0


Hi Jimmy! As Brett noted above in the comments, you can just put this in your script.js file:

document.getElementsByClassName("recent-activity-header")[0].innerHTML="Recent Updates";

0


Dave Dyson - Was following some of the comments above that suggested adding it to home_page.hbs. I just want to change the "Recent Activity" to "Recently Viewed" on my homepage. Any suggestions? 

0


Hi Jimmy -
 
In order to add Javascript, you'll want to add your code to the script.js file, rather that putting in the HTML page templates. See Customizing your help center theme

0


Can't seem to get this down. Any suggestions?

0


Hey Shweta,

We don't have a placeholder for recently added articles, however, if you create an article you can promote it and then use the promoted_articles placeholder instead. Check out our available Helpers here: Help Center Helpers

I hope this helps!

0


Is there a way I can limit it to recently added articles? Please suggest.

0


Thanks for sharing that, Brett!

0


Vous connecter pour laisser un commentaire.

Vous ne trouvez pas ce que vous cherchez ?

Nouvelle publication