Remove community menu links from homepage (Collections, Join the Conversation, Join the Community).
The <Modules /> component in NavSidebar.jsx renders the sub-modules based on what's needed in the sidebar where <NavSidebar /> is called. The core code for these widgets remains inside the NavSidebar.jsx file, and they remain as possible modules within <Modules /> for <NavSidebar /> to call (i.e. so they can be called on the Community page without breaking functionality).
The strategy here was to remove the links and the specific Join the Conversation/Join the Community where they are called, so within the library no one will encounter these widgets.
Additionally, the Collections and Community links were removed.
Code changes:
static/js/CommunityPage.jsx - Remove JoinTheConversation and ExploreCollections from the modules to be rendered in the sidebar.
static/js/Footer.jsx - Remove the Source Sheets link from the footer.
static/js/Header.jsx - Remove the Community link from the header.
static/js/NavSidebar.jsx - Remove Create with Sefaria and Collections from the homepage sidebar
static/js/TextsPage.jsx - Remove JoinTheCommunity module from rendering in the sidebar
static/js/TopicPageAll.jsx - Remove JoinTheConversation module from rendering in the sidebar
static/js/TopicsPage.jsx - Remove JoinTheConversation module from rendering in the sidebar
Testing functionality
All of the pages changes were made on still work
The /community page still works as well, no broken functionality
Description
Remove community menu links from homepage (
Collections
,Join the Conversation
,Join the Community
). The<Modules />
component inNavSidebar.jsx
renders the sub-modules based on what's needed in the sidebar where<NavSidebar />
is called. The core code for these widgets remains inside theNavSidebar.jsx
file, and they remain as possible modules within<Modules />
for<NavSidebar />
to call (i.e. so they can be called on theCommunity
page without breaking functionality).The strategy here was to remove the links and the specific
Join the Conversation
/Join the Community
where they are called, so within the library no one will encounter these widgets.Additionally, the
Collections
andCommunity
links were removed.Code changes:
static/js/CommunityPage.jsx
- RemoveJoinTheConversation
andExploreCollections
from the modules to be rendered in the sidebar.static/js/Footer.jsx
- Remove theSource Sheets
link from the footer.static/js/Header.jsx
- Remove theCommunity
link from the header.static/js/NavSidebar.jsx
- RemoveCreate with Sefaria
andCollections
from the homepage sidebarstatic/js/TextsPage.jsx
- RemoveJoinTheCommunity
module from rendering in the sidebarstatic/js/TopicPageAll.jsx
- RemoveJoinTheConversation
module from rendering in the sidebarstatic/js/TopicsPage.jsx
- RemoveJoinTheConversation
module from rendering in the sidebarTesting functionality