BuddyDev

Search

[Resolved] Hide in BuddyPress Activity ShortCode

  • Participant
    Level: Initiated
    Posts: 15
    Philippe on #26995

    Hi there,

    I’m using the theme woffice, BuddyPress nouveau, BuddyPress Activity ShortCode and the plugin BuddyPress Edit Activity. All in the newest available Version.

    Using BuddyPress Activity ShortCode with this shortcode: [activity-stream title=”” scope=groups max=3]

    The list of the activities is appearing fine but there is a section under every post within the following tag.
    <div class=” -meta action”>
    I would like to delete / hide this section. It contains buttons, that allow to comment / edit the post and it contains information about how many comments happend. But their styling isn’t working properly.

    I can’t hide it by setting the css class to display:none;

    Any Ideas on how to delete this section?

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #27000

    Hi Philippe,
    Welcome to BuddyDev.

    Please use this css

    
    .bpas-shortcode-activities .activity-meta{
    	display:none;
    }
    

    That will hide it.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 15
    Philippe on #27010

    Hi Brajesh,

    Thank you for your work.

    The css is not working. I pasted it into my custom css but it has no outcome.
    I tried the following css:
    #activity-770 > div.activity-content > div.-meta.action
    But that only hides the area from a specific activity. The problem also is that I only want to hide it from one list and not when the acivity is part of the normal buddypress stream.

    I also tried this selector which didn’t work:
    div.textwidget > #buddypress > bpas-shortcode-activities activity shortcode-activity-stream > #activity-stream > groups activity_update activity-item > div.activity-content > div.-meta.action {}

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #27012

    Hi Philippe,
    That should have worked.

    if it did not, can you please link me to the site where I can see it(with a guest user account).
    It should be a simple task.

    regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 15
    Philippe on #27015
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #27016

    Thank you.

    The problem is your theme uses dynamic context for the activity actions.

    here is a solution(Though it may be problematic in future)

    
    
    .bpas-shortcode-activities .activity-inner+div {
      display:none;
    
    }
    
    

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 15
    Philippe on #27020

    Thank you.

    That css selector worked.

    Regards
    Philippe

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #27022

    You are welcome.

The topic ‘ [Resolved] Hide in BuddyPress Activity ShortCode’ is closed to new replies.

This topic is: resolved