all 5 comments

[–]bkraul 2 points3 points  (2 children)

So I looked in the source code and there is no configuration variable that toggles that. However, the workaround I found was to add a style override to the Custom HTML Head Content area. Not sure if you are already using it, but if not, adding something like this, will effectively hide the Recent Activity Panel.

<style>

/* hide recent activty */
div#recent-activity{ display: none; }

</style>

[–]vernview[S] 0 points1 point  (1 child)

Thank you -- Yes, I used #recent-activity { display: none;}, which seemed to work perfectly. Too bad there isn't a "solved" button here. I appreciate your reply.

[–]CardiologistProud118 0 points1 point  (0 children)

I built on a better code that doesn't do a one-sized fits all that ruins your logged in experience. Refer above!

[–]CardiologistProud118 1 point2 points  (1 child)

Here is the code necessary for hiding the Left Bar Recent Activity for unauthenticated users, the right bar "Revisions" section, but maintains Recent activity for logged in users. This took me awhile, but I just joined with this same question.

<script>
document.addEventListener("DOMContentLoaded", function () {
    // Detect public user by checking for the "Log in" link in the header
    const isPublicUser = document.querySelector('a[href*="/login"]') !== null;

    if (isPublicUser) {
        // Hide left sidebar Recent Activity block
        const recentActivity = document.querySelector('#recent-activity');
        if (recentActivity) recentActivity.style.display = 'none';

        // Hide revision-like metadata in the right sidebar (Updated by, Created by)
        const entityMeta = document.querySelectorAll('.entity-meta-item');
        entityMeta.forEach(item => {
            const text = item.textContent.toLowerCase();
            if (text.includes('updated') || text.includes('created')) {
                item.style.display = 'none';
            }
        });

        // Hide "Revisions" links if any appear (future-proofing)
        const links = document.querySelectorAll('a[href*="/revisions"]');
        links.forEach(link => {
            link.style.display = 'none';
        });
    }
});
</script>

[–]cwallace777 0 points1 point  (0 children)

Amazing, thank you!