I need to adjust the value shown as record count in the homepage.
I have the JS selector path
Code: Select all
document.querySelector("#tablename-tile > div > div > div.btn-group > a:nth-child(1) > span").textContent='MY_VALUE'
Thus I think I will need to combine PHP with JS:
Use PHP to get the count I want and dynamically add this to the JS.
So my question is: Where do I add the code so that injects (or changes the badge contents before displaying the number)?
Thanks already
Olaf