Title: Dashboard not functioning
Last modified: June 18, 2021

---

# Dashboard not functioning

 *  Resolved [zroku](https://wordpress.org/support/users/zroku/)
 * (@zroku)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/dashboard-not-functioning-3/)
 * Hi, I installed the plugin and tried it out. It seems like the custom javascript
   I have for translation some how conflicts with the plugin.
 * This is the custom javascript code I used:
    document.body.innerHTML = document.
   body.innerHTML.replace(/XXX/g, ‘YYY’);
 * The dashboard tabs and other clickable link aren’t responding. Only works when
   I removed all the custom javascript.
 * Please advise. Thanks
 * Philip
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdashboard-not-functioning-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [zroku](https://wordpress.org/support/users/zroku/)
 * (@zroku)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/dashboard-not-functioning-3/#post-14572082)
 * Other pages also have issues. Like on the single listing page, the footer thumbnail
   isn’t working what it’s supposed to be.
    -  This reply was modified 4 years, 11 months ago by [zroku](https://wordpress.org/support/users/zroku/).
 *  Thread Starter [zroku](https://wordpress.org/support/users/zroku/)
 * (@zroku)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/dashboard-not-functioning-3/#post-14572233)
 * I found a fixed by changing the custom javascript to:
 *     ```
       function replace(element, from, to) {
           if (element.childNodes.length) {
               element.childNodes.forEach(child => replace(child, from, to));
           } else {
               const cont = element.textContent;
               if (cont) element.textContent = cont.replace(from, to);
           }
       };
   
       replace(document.body, new RegExp("hello", "g"), "hi");
       ```
   
 * It all works now. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Dashboard not functioning’ is closed to new replies.

 * ![](https://ps.w.org/directorist/assets/icon-256x256.gif?rev=3185058)
 * [Directorist: AI-Powered Business Directory, Listings & Classified Ads](https://wordpress.org/plugins/directorist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/directorist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/directorist/)
 * [Active Topics](https://wordpress.org/support/plugin/directorist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/directorist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/directorist/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [zroku](https://wordpress.org/support/users/zroku/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/dashboard-not-functioning-3/#post-14572233)
 * Status: resolved