How to make My Favorites widget list view as default instead of card view?

bbf35621
Kilo Sage

Hi guys!

I have cloned the OOB My Favorites widget so I can customize some of it and use it on the ESC portal homepage.

Right now, the My Favorites widget has two icons next to "Sort by" which are Card View and List View and the Card View is currently displayed as default. How can I remove both these icons and make it list view as default? Also, how can I remove the text "Browse favorites"? I have commented out the HTML and it didn't remove it.

favorite.png

1 ACCEPTED SOLUTION

Karan Chhabra6
Mega Sage
Mega Sage

Hi @bbf35621 ,

 

You need to make changes at three places in the HTML Template, this will be the result:

KaranChhabra6_0-1685048519628.png

 

Step 1: Comment out line 26:

KaranChhabra6_1-1685048567740.png

 

Step 2:  Comment line 43-65

KaranChhabra6_2-1685048659496.png

 

Step 3: remove the ternary operator from line 72

KaranChhabra6_3-1685048740796.png

 

 

If my answer has helped with your question, please mark it as correct and helpful

 

Thanks,

Karan

View solution in original post

1 REPLY 1

Karan Chhabra6
Mega Sage
Mega Sage

Hi @bbf35621 ,

 

You need to make changes at three places in the HTML Template, this will be the result:

KaranChhabra6_0-1685048519628.png

 

Step 1: Comment out line 26:

KaranChhabra6_1-1685048567740.png

 

Step 2:  Comment line 43-65

KaranChhabra6_2-1685048659496.png

 

Step 3: remove the ternary operator from line 72

KaranChhabra6_3-1685048740796.png

 

 

If my answer has helped with your question, please mark it as correct and helpful

 

Thanks,

Karan