• Resolved Advocat001

    (@advocat001)


    As I’ve mentioned to you before, I’m using Commentpress to run multiple translations projects at one time. https://hidensho.com/

    At present the link in the Activity section for recent comments is “Recent Comments in this Document”. This of course pulls up all recent comments, from all of my projects, which is confusing to reader). It also appears even on the home page and other background pages (no actual project), which they find even more confusing

    It would be best if I could:

    First, and most difficult, would be to get a functions.php script so that this header/link only shows up inside a project. As all project pages are sub-pages, I basically saying that link should not show up on top level pages.

    Additionally — perhaps easiest — I need at least to be able to change the header to: “Latest Comments from all Documents”, rather than the present “Latest Comments in this Document:

    Finally, if nothing else can be done, I need to be able to hide that header/link using CSS display:none. Unfortunately, the closest ID tag I can find for that heading/link is “activity_header”… and, of course, hiding this hides all entries in the Activity section, not just the one.

    Any help with this small problem appreciated.

    Randy

    • This topic was modified 7 years, 12 months ago by Advocat001.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Christian Wach

    (@needle)

    Your request is asking rather more than I am able to offer in this forum, I’m afraid. However, you can change the header with:

    add_filter( 'cp_activity_tab_recent_title_blog', 'my_activity_tab_title' );
    function my_activity_tab_title() {
    	return 'Latest Comments from all Documents';
    }
    

    Given that this is more meaningful in your context, it strikes me that the section shouldn’t cause as much confusion as it previously did.

    Cheers, Christian

    Thread Starter Advocat001

    (@advocat001)

    Perfect Christian, thanks; works nicely. Yes, I figured the first request would be a major amount of work and beyond the scope of a “quick fix”.

    Plugin Author Christian Wach

    (@needle)

    Glad it’s sorted.

    Cheers, Christian

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change or hide Recent Comments in Activity’ is closed to new replies.