최근 검색
최근 검색 없음
Hide Component Based on Role
2024년 4월 02일에 게시됨
Hello! I am looking to hide recent_activity on the homepage based on the user role. I do not want end-users to see this section, but leave it in place for Agents and Admins. Any ideas on how to accomplish this?
1
1
댓글 1개
Pulkit Pandey
Hi Alek
Please go through the following steps to hide the recent_activity on the homepage for end users and available for the Agents and Admins.
1. Go to the home_page.hbs file and search for the following “{{recent_activity}}” and then add the “hide” class on its wrapper.
2. Then go to the script.js file and add the below code at the bottom
3. Add the below CSS at the bottom of your style.css file
Let me know if it solves your issue
Thank You
Pulkit
Team Diziana
0